@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0c0a1d;
  --bg-2: #131030;
  --line: rgba(255, 255, 255, .09);
  --text: #f5f3ff;
  --muted: #aaa4c8;
  --violet: #5b4bff;
  --magenta: #d24fe6;
  --sky: #69cef4;
  --sun: #ffc100;
  --radius: 28px;
  --wrap: 1200px;
  --display: "Outfit", ui-rounded, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* The glows behind the games reach past the screen's edge on purpose; they must never make the page scroll sideways. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  font: 400 17px/1.65 var(--body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* A fine grain over everything, so the gradients read as light rather than flat colour. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; margin: 0; }
p { margin: 0; }
svg { flex: none; }

.eyebrow {
  font: 600 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--game, var(--sky)); margin-bottom: 14px;
}

/* --- Header -------------------------------------------------------------------- */

.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.solid {
  background: rgba(12, 10, 29, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.top .logo img { width: 138px; height: auto; }
.home .top .logo { opacity: 0; pointer-events: none; transition: opacity .3s; }
.home .top.solid .logo { opacity: 1; pointer-events: auto; }
.top nav { display: flex; gap: 6px; }
.top nav a {
  font: 600 .95rem var(--body); text-decoration: none; color: var(--text);
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
.top nav a:hover { background: rgba(255, 255, 255, .1); }

/* --- Buttons ------------------------------------------------------------------- */

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px 14px 20px; border-radius: 999px;
  font: 600 1rem/1 var(--body); text-decoration: none; color: #fff;
  background: var(--game, var(--violet));
  box-shadow: 0 10px 30px -8px var(--game, var(--violet)), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 36px -8px var(--game, var(--violet)), inset 0 1px 0 rgba(255, 255, 255, .25); }
.cta svg { width: 20px; height: 20px; }
.cta.light { background: #fff; color: #17132f; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .5); padding: 14px 20px 14px 24px; }
.cta.ghost { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.cta.ghost:hover { background: rgba(255, 255, 255, .12); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badge { transition: transform .2s; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 44px; width: auto; }
.soon { color: var(--muted); font-size: .9rem; }

/* --- Hero ---------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: 120px clamp(20px, 4vw, 48px) 90px;
}
.hero.small { min-height: 70svh; }
.aurora { position: absolute; inset: 0; z-index: -1; }
.aurora::after {
  content: ""; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: var(--violet); }
.aurora i:nth-child(2) { width: 46vw; height: 46vw; right: -12vw; top: -6vw; background: var(--magenta); animation-delay: -7s; opacity: .42; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 34vw; bottom: -14vw; background: var(--sky); animation-delay: -14s; opacity: .26; }
@keyframes drift {
  to { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
}

.hero-inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-inner.one { grid-template-columns: 1fr; text-align: center; }
.hero-inner.one .cta { margin-top: 28px; }
.biglogo { width: min(340px, 70vw); height: auto; margin-bottom: 40px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); margin-bottom: 26px; }
.hero h1 + .lead { max-width: 34em; }
.lead p { color: #d6d1f0; font-size: clamp(1.02rem, 1.4vw, 1.16rem); margin-bottom: 12px; }
.hero-text .cta { margin-top: 22px; }

.fan { position: relative; aspect-ratio: 1 / .92; }
.fan-card {
  position: absolute; width: 74%; border-radius: 22px; overflow: hidden; text-decoration: none;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotate(var(--r));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s;
  animation: float 7s ease-in-out infinite;
}
.fan-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.fan-card .fan-name {
  position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(12, 10, 29, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 .92rem var(--display); color: #fff;
}
.fan-card .fan-name img { width: 30px; height: 30px; aspect-ratio: 1; border-radius: 9px; }
.fan-card.c0 { left: 0; top: 4%; --r: -6deg; z-index: 1; }
.fan-card.c1 { right: 0; top: 30%; --r: 4deg; z-index: 3; animation-delay: -2.3s; }
.fan-card.c2 { left: 8%; top: 58%; --r: -2deg; z-index: 2; animation-delay: -4.6s; }
.fan-card:hover { z-index: 5; transform: rotate(0deg) scale(1.04); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 2px var(--game); animation-play-state: paused; }
@keyframes float {
  50% { translate: 0 -10px; }
}

/* --- Games on the home page ----------------------------------------------------- */

.games { max-width: var(--wrap); margin: 0 auto; padding: 40px clamp(20px, 4vw, 48px) 120px; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.feature {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; margin-bottom: clamp(80px, 11vw, 140px);
}
.feature.flip { grid-template-columns: 1fr 1.25fr; }
.feature.flip .feature-art { order: 2; }
.feature::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: var(--game); opacity: .16; filter: blur(110px); top: -20%; left: -10%;
}
.feature.flip::before { left: auto; right: 0; }
.feature-art {
  display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
}
.feature-art img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.feature-art:hover img { transform: scale(1.05); }
.feature h3 { display: flex; align-items: center; gap: 16px; font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 16px; }
.feature h3 a { text-decoration: none; }
.app-icon { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14); }
.app-icon.big { width: 112px; height: 112px; margin-bottom: 26px; }
.summary { color: #d6d1f0; font-size: 1.08rem; margin-bottom: 28px; max-width: 32em; }
.more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-weight: 600; text-decoration: none; color: var(--game);
}
.more svg { width: 18px; height: 18px; transition: transform .2s; }
.more:hover svg { transform: translateX(4px); }

/* --- Game pages ------------------------------------------------------------------ */

.g-hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; isolation: isolate; }
.g-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.g-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 4%, rgba(12, 10, 29, .78) 38%, rgba(12, 10, 29, .1) 70%, rgba(12, 10, 29, .45)),
    linear-gradient(to right, rgba(12, 10, 29, .7), transparent 60%);
}
.g-head { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 140px clamp(20px, 4vw, 48px) 64px; }
.g-head h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.g-head .summary { font-size: 1.15rem; }
.note { color: var(--muted); font-size: .92rem; margin-top: 18px; }

.g-body {
  max-width: var(--wrap); margin: 0 auto; padding: 56px clamp(20px, 4vw, 48px) 130px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start;
}
.g-about p { color: #d6d1f0; font-size: 1.1rem; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%; margin-top: 1px;
  color: var(--game); background: color-mix(in srgb, var(--game) 18%, transparent);
}
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shots img {
  width: 100%; height: auto; border-radius: 22px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
}
.shots img:nth-child(even) { translate: 0 48px; }

/* --- Footer ---------------------------------------------------------------------- */

.bottom { border-top: 1px solid var(--line); background: linear-gradient(to bottom, var(--bg), #08061a); padding: 64px clamp(20px, 4vw, 48px) 36px; }
.bottom .wrap { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-brand img { width: 150px; height: auto; margin-bottom: 22px; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s, transform .2s;
}
.social a:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }
.foot-col h2 { font: 600 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-col a { text-decoration: none; font-weight: 500; }
.foot-col a:hover { color: var(--sky); }
.bottom .fine {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  color: var(--muted); font-size: .86rem;
}
.bottom .legal { display: flex; flex-wrap: wrap; gap: 22px; }
.bottom .legal a { text-decoration: none; }
.bottom .legal a:hover { color: var(--text); }

/* --- Motion ---------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.shots img.reveal:nth-child(2) { transition-delay: .1s; }
.shots img.reveal:nth-child(3) { transition-delay: .2s; }
.shots img.reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .fan-card { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Narrow screens -------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-inner, .feature, .feature.flip, .g-body { grid-template-columns: 1fr; }
  .feature.flip .feature-art { order: 0; }
  .hero { padding-top: 110px; }
  .hero-text { text-align: center; }
  .biglogo { margin-inline: auto; }
  .hero h1 + .lead { margin-inline: auto; }
  .fan { width: min(100%, 520px); margin: 0 auto; }
  .bottom .wrap { grid-template-columns: 1fr; }
  .shots img:nth-child(even) { translate: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav a { padding: 8px 10px; }
  .actions { gap: 14px; }
  .cta { width: 100%; justify-content: center; }
  .shots { gap: 12px; }
}

/* The first card's label sits at its top, clear of the card overlapping it. */
.fan-card.c0 .fan-name { top: 12px; bottom: auto; }

/* --- Play page: the demo in a phone frame ----------------------------------------- */

.play-page .top {
  background: rgba(12, 10, 29, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.play { position: relative; overflow: hidden; padding: 100px clamp(20px, 4vw, 48px) 72px; }
.play-glow {
  position: absolute; width: 70vw; height: 70vw; border-radius: 50%; pointer-events: none;
  background: var(--game); opacity: .18; filter: blur(130px); top: -25%; left: -15%;
}
.play-inner {
  position: relative; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center;
}
.phone {
  height: min(820px, calc(100svh - 150px)); min-height: 480px; aspect-ratio: 9 / 16;
  padding: 10px; border-radius: 44px; background: #05040d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 90px -30px var(--game);
}
.phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 34px; background: #000; }
.play-side h1 { margin: 0 0 14px; }
.play-side .app-icon { margin-bottom: 22px; }
.play-more { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

@media (max-width: 900px) {
  .play { padding: 64px 0 56px; }
  .play-inner { grid-template-columns: 1fr; gap: 32px; }
  /* Edge to edge, short enough that a strip of the page shows below to scroll by. */
  .phone { height: calc(100svh - 64px - 56px); min-height: 0; width: 100%; aspect-ratio: auto; padding: 0; border-radius: 0; box-shadow: none; }
  .phone iframe { border-radius: 0; }
  .play-side { padding-inline: clamp(20px, 4vw, 48px); }
}

/* The sheet the demo's install button opens, over the game. */
.phone { position: relative; }
.get {
  position: absolute; inset: 10px; z-index: 2; border-radius: 34px;
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
  background: rgba(8, 6, 20, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: get-fade .2s ease-out;
}
.get[hidden] { display: none; }
.get-card {
  width: 100%; max-width: 360px; padding: 28px 24px 18px; border-radius: 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 80px -30px var(--game);
  animation: get-rise .28s cubic-bezier(.2, .8, .2, 1);
}
.get-card .app-icon.big { width: 88px; height: 88px; margin-bottom: 16px; }
.get-title { font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.6rem; margin: 0 0 4px; }
.get-text { color: var(--muted); margin: 0 0 20px; }
.get .badge img { height: 56px; }
.get .badge[hidden], .get-soon[hidden] { display: none; }
.get-soon { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--game); text-decoration: none; padding: 10px 0; }
.get-soon svg { width: 18px; height: 18px; }
.get-close {
  margin-top: 14px; padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: var(--muted); font: inherit; font-weight: 600;
}
.get-close:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
@keyframes get-fade { from { opacity: 0; } }
@keyframes get-rise { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 900px) { .get { inset: 0; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .get, .get-card { animation: none; } }
