@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lilita-one-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lilita-one-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2');
}

/* Palette taken from the game's interface: deep navy panels, yellow titles and
   the pink / sky / orange / violet / green of its round buttons. */
:root {
  --bg: #15112a;
  --bg-2: #1f1940;
  --bg-3: #2a2352;
  --line: rgba(255, 244, 230, 0.09);
  --line-strong: rgba(255, 244, 230, 0.18);
  --ink: #fff7ee;
  --muted: #b9b0d6;
  --accent: #ffd23f;
  --accent-ink: #2b1d00;
  --pink: #ff5fa2;
  --sky: #5fd0ff;
  --orange: #ff9f43;
  --violet: #8b5cf6;
  --green: #4ddc8a;
  --display: 'Lilita One', 'Poppins', system-ui, sans-serif;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --radius: 26px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Soft colored lights behind everything, on a fixed layer (never the scroller). */
body::before {
  content: '';
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42vmax 42vmax at 80% 12%, rgba(255, 95, 162, 0.14), transparent 60%),
    radial-gradient(38vmax 38vmax at 12% 30%, rgba(95, 208, 255, 0.12), transparent 60%),
    radial-gradient(46vmax 40vmax at 50% 100%, rgba(255, 210, 63, 0.1), transparent 60%);
  animation: drift 30s var(--ease) infinite alternate;
}

@keyframes drift {
  to {
    transform: translate3d(-3vmax, 2vmax, 0);
  }
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.ico-arrow {
  --icon: url('/icons/arrow-up-right.svg');
}
.ico-windows {
  --icon: url('/icons/windows.svg');
}
.ico-googleplay {
  --icon: url('/icons/googleplay.svg');
}
.ico-appstore {
  --icon: url('/icons/appstore.svg');
}

/* ------------------------------------------------------------------ top */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.3px;
}

.brand img {
  border-radius: 11px;
}

.top-nav {
  display: flex;
  gap: 6px;
}

.top-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 300ms var(--ease), background-color 300ms var(--ease);
}

.top-nav a:hover {
  color: var(--ink);
  background: rgba(255, 244, 230, 0.06);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100dvh - 80px);
  padding: 40px 0 72px;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(54px, 7vw, 98px);
  line-height: 0.98;
  letter-spacing: -0.5px;
  margin: 0 0 22px;
  color: var(--accent);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.sub {
  max-width: 36ch;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 21px);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cta-center {
  justify-content: center;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 8px 8px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  transition: transform 500ms var(--spring), background-color 300ms var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #ffdc62;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(43, 29, 0, 0.12);
  font-size: 18px;
  transition: transform 500ms var(--spring);
}

.btn-primary:hover .btn-icon {
  transform: translate(2px, -2px) scale(1.06);
}

.btn-ghost {
  padding: 8px 26px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 244, 230, 0.05);
}

.btn:focus-visible,
.store:focus-visible,
.top-nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 680px;
  justify-self: end;
}

/* The trailer frame: a colored ring, a dark tray and the video plate inside. */
.hero-video {
  position: relative;
  padding: 8px;
  border-radius: 32px;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, var(--pink), var(--accent) 50%, var(--sky)) border-box;
  border: 3px solid transparent;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 244, 230, 0.08);
}

.hero-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 22px;
  background: var(--bg-2);
}

.sound {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 17, 42, 0.78);
  color: var(--ink);
  font: 700 14px/1 var(--font);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(8px);
  transition: background-color 300ms var(--ease), transform 400ms var(--spring);
}

.sound:hover {
  background: rgba(21, 17, 42, 0.95);
}

.sound:active {
  transform: scale(0.96);
}

.sound[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------------------------------------------------------------- shots */

.shots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 24px 0 120px;
}

.shot {
  margin: 0;
  grid-column: span 2;
}

.shot-wide {
  grid-column: span 4;
  grid-row: span 2;
}

.shots .shot:nth-child(4),
.shots .shot:nth-child(5) {
  grid-column: span 3;
}

/* Double bezel: an outer tray holding the image plate. */
.bezel {
  padding: 6px;
  border-radius: var(--radius);
  background: rgba(255, 244, 230, 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
}

.bezel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}

.shot-wide .bezel {
  height: calc(100% - 34px);
}

.shot-wide .bezel img {
  aspect-ratio: auto;
  height: 100%;
  object-fit: cover;
}

figcaption {
  padding: 10px 6px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

/* ------------------------------------------------------------- features */

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  margin: 0 0 36px;
  color: var(--accent);
}

.features {
  padding: 0 0 100px;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 244, 230, 0.06);
  transition: transform 600ms var(--spring);
}

.feature:hover {
  transform: translateY(-4px);
}

.feature h3 {
  margin: 18px 0 8px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.fi-pink { background: linear-gradient(180deg, #ff7bb8, #f03d8a); }
.fi-orange { background: linear-gradient(180deg, #ffb25e, #f2862a); }
.fi-sky { background: linear-gradient(180deg, #74d9ff, #2fb2ea); }
.fi-violet { background: linear-gradient(180deg, #a98bff, #7a4ef0); }
.fi-green { background: linear-gradient(180deg, #6ee9a3, #2fc46e); }
.fi-yellow { background: linear-gradient(180deg, #ffe066, #f2b81f); color: #3a2800; }

/* ---------------------------------------------------------------- stats */

.stats {
  padding: 0 0 120px;
}

.stats-core {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 30px 28px;
  border-radius: calc(var(--radius) - 6px);
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 rgba(255, 244, 230, 0.06);
}

.stats-core div {
  padding: 4px 8px;
}

.stats-core dt {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--accent);
}

.stats-core dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

/* ------------------------------------------------------------ downloads */

.downloads {
  padding: 0 0 140px;
}

.downloads h2 {
  margin-bottom: 12px;
}

.downloads-note {
  max-width: 60ch;
  margin: 0 0 32px;
  color: var(--muted);
}

.stores {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}

.store {
  text-decoration: none;
  transition: transform 600ms var(--spring);
}

.store:hover {
  transform: translateY(-4px);
}

.store:active {
  transform: scale(0.98);
}

.store .bezel {
  height: 100%;
}

.store-core {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  min-height: 112px;
  padding: 22px 26px;
  border-radius: calc(var(--radius) - 6px);
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 rgba(255, 244, 230, 0.06);
}

.store .ico {
  flex: none;
  font-size: 40px;
}

.store b {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.store small {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.store.current .store-core {
  box-shadow: inset 0 0 0 2px var(--accent), inset 0 1px 0 rgba(255, 244, 230, 0.06);
}

.store.current small {
  color: var(--accent);
}

.store.soon {
  pointer-events: none;
}

.store.soon .store-core {
  opacity: 0.7;
}

/* --------------------------------------------------------------- footer */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------- prose pages */

.prose {
  max-width: 720px;
  margin: 40px auto 100px;
}

.prose h1 {
  font-size: clamp(40px, 6vw, 60px);
}

.prose h2 {
  font-size: 26px;
  margin: 36px 0 8px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose b {
  color: var(--ink);
}

.prose a {
  color: var(--accent);
}

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 900ms var(--ease), transform 900ms var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before {
    animation: none;
  }
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .top-nav {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 0 64px;
    gap: 44px;
  }
  .hero-art {
    order: -1;
    margin-bottom: 8%;
  }
  .shots {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-bottom: 80px;
  }
  .shot,
  .shot-wide,
  .shots .shot:nth-child(4),
  .shots .shot:nth-child(5) {
    grid-column: span 1;
    grid-row: auto;
  }
  .shot-wide {
    grid-column: span 2;
  }
  .shot-wide .bezel {
    height: auto;
  }
  .shot-wide .bezel img {
    aspect-ratio: 16 / 9;
  }
  .stats-core {
    grid-template-columns: repeat(2, 1fr);
  }
  .stores {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  main,
  .top {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-small {
    display: none;
  }
  .hero-main {
    transform: none;
  }
  .shots {
    grid-template-columns: 1fr;
  }
  .shot-wide {
    grid-column: span 1;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    justify-content: space-between;
  }
  .btn-ghost {
    justify-content: center;
  }
}
