:root {
  color-scheme: dark;
  --blue: oklch(0.58 0.25 255);
  --blue-deep: oklch(0.22 0.16 263);
  --cyan: oklch(0.8 0.17 205);
  --mint: oklch(0.78 0.18 155);
  --pink: oklch(0.68 0.25 335);
  --red: oklch(0.61 0.24 25);
  --orange: oklch(0.79 0.19 66);
  --gold: oklch(0.9 0.16 92);
  --night: oklch(0.15 0.11 263);
  --night-2: oklch(0.2 0.14 254);
  --ink: oklch(0.99 0.01 255);
  --ink-soft: oklch(0.91 0.03 252);
  --ink-muted: oklch(0.78 0.05 250);
  --line: oklch(1 0 0 / 0.16);
  --panel: oklch(0.18 0.11 260);
  --panel-2: oklch(0.22 0.12 257);
  --max: 1180px;
  --shadow-hard: 0 10px 0 oklch(0 0 0 / 0.18);
  --shadow-soft: 0 24px 56px oklch(0 0 0 / 0.34);
  font-family:
    Rubik, ui-rounded, "SF Pro Rounded", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, oklch(0.16 0.13 264), oklch(0.19 0.16 251) 44%, oklch(0.12 0.09 268));
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(oklch(1 0 0 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--gold);
  color: oklch(0.18 0.08 84);
  font-weight: 900;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: oklch(0.13 0.1 263 / 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 8px 0 oklch(0 0 0 / 0.18);
}

.brand span {
  font-family: Fredoka, Rubik, system-ui, sans-serif;
  font-size: 1.28rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold);
}

.pill-link {
  border-radius: 999px;
  background: var(--gold);
  color: oklch(0.18 0.08 84);
  padding: 0.72rem 1rem;
  box-shadow: 0 6px 0 oklch(0 0 0 / 0.18);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Fredoka, Rubik, system-ui, sans-serif;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 11vw, 5.8rem);
}

h2 {
  font-size: clamp(2.35rem, 5.8vw, 4.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

p {
  color: var(--ink-soft);
  line-height: 1.68;
  text-wrap: pretty;
}

.lead {
  max-width: 50ch;
  margin: 1.2rem 0 0;
  font-size: clamp(1.12rem, 2vw, 1.32rem);
  color: oklch(0.96 0.02 250);
}

.badge,
.section-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.48rem;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.13);
  color: var(--ink);
  padding: 0.58rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 900;
}

.badge::before,
.section-label::before {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 18px var(--gold);
}

.section-label::before {
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.button-primary {
  background: var(--gold);
  color: oklch(0.18 0.08 84);
  box-shadow: 0 8px 0 oklch(0 0 0 / 0.2);
}

.button-secondary {
  background: oklch(1 0 0 / 0.13);
  color: var(--ink);
  outline: 1px solid oklch(1 0 0 / 0.16);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 10px 0 oklch(0 0 0 / 0.2);
}

.hero {
  position: relative;
  min-height: clamp(620px, calc(100svh - 136px), 860px);
  overflow: clip;
  display: grid;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(104deg, oklch(0.1 0.09 265) 0%, oklch(0.16 0.13 263) 40%, oklch(0.22 0.14 232) 100%);
}

.hero-media::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, oklch(0.1 0.09 265 / 0.96) 0%, oklch(0.13 0.1 262 / 0.82) 38%, oklch(0.13 0.1 262 / 0.12) 100%),
    linear-gradient(0deg, oklch(0.1 0.09 265 / 0.72), transparent 42%);
}

.hero-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  background: linear-gradient(0deg, oklch(0.1 0.09 265), transparent);
}

.phone-cluster {
  position: absolute;
  right: min(8vw, 98px);
  bottom: -8rem;
  width: min(46vw, 610px);
  height: min(70vw, 720px);
}

.phone-shot {
  position: absolute;
  width: clamp(150px, 18vw, 250px);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  animation: float-in 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.phone-shot-main {
  right: 26%;
  bottom: 8%;
  width: clamp(180px, 21vw, 306px);
  z-index: 3;
}

.phone-shot-left {
  left: 0;
  bottom: 3%;
  z-index: 2;
  transform: rotate(-8deg);
  animation-delay: 80ms;
}

.phone-shot-right {
  right: 0;
  bottom: 0;
  z-index: 1;
  transform: rotate(8deg);
  animation-delay: 150ms;
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3.4rem, 7vw, 6rem) 0 clamp(5rem, 9vw, 7rem);
}

.actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
}

.hero-facts div {
  min-width: 138px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(1 0 0 / 0.08);
  padding: 0.8rem 0.9rem;
}

.hero-facts dt {
  margin: 0 0 0.2rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

main > section {
  scroll-margin-top: 96px;
}

.section-head {
  max-width: 820px;
}

.section-head-tight {
  display: grid;
  gap: 1rem;
}

.section-head p {
  max-width: 68ch;
  margin: 0;
}

.screen-section {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.poster-runway {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.1rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3.4rem);
}

.store-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.store-poster img {
  width: 100%;
}

.store-poster figcaption {
  min-height: 92px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.95rem;
  background: oklch(0.14 0.09 263);
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.35;
}

.store-poster-b {
  margin-top: clamp(1.1rem, 3vw, 3rem);
}

.store-poster-c {
  margin-top: clamp(0.45rem, 1.4vw, 1.4rem);
}

.store-poster-d {
  margin-top: clamp(1.8rem, 4vw, 4.2rem);
}

.loop-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(100deg, oklch(0.2 0.15 260) 0%, oklch(0.23 0.15 246) 48%, oklch(0.28 0.16 198) 100%);
  border-block: 1px solid var(--line);
}

.loop-copy {
  padding-inline: 16px 0;
}

.loop-copy p {
  max-width: 52ch;
}

.loop-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding-inline: 0 16px;
}

.loop-step {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, oklch(1 0 0 / 0.16), oklch(1 0 0 / 0.07));
  padding: 1rem;
}

.tile {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(0.99 0.06 91), oklch(0.84 0.14 72));
  color: oklch(0.54 0.17 58);
  font-family: Fredoka, Rubik, system-ui, sans-serif;
  font-weight: 900;
  box-shadow: inset 0 -6px 0 oklch(0.7 0.15 62), 0 10px 0 oklch(0 0 0 / 0.16);
}

.tile-hot {
  background: linear-gradient(180deg, oklch(0.9 0.16 148), oklch(0.62 0.19 154));
  color: white;
  box-shadow: inset 0 -6px 0 oklch(0.44 0.16 154), 0 10px 0 oklch(0 0 0 / 0.16);
}

.tile-cool {
  width: 66px;
  background: linear-gradient(180deg, oklch(0.86 0.16 195), oklch(0.58 0.2 231));
  color: white;
  box-shadow: inset 0 -6px 0 oklch(0.42 0.16 238), 0 10px 0 oklch(0 0 0 / 0.16);
}

.loop-step strong {
  font-family: Fredoka, Rubik, system-ui, sans-serif;
  font-size: 1.35rem;
}

.loop-step span:last-child {
  color: var(--ink-soft);
  line-height: 1.55;
}

.mode-section {
  display: grid;
  gap: clamp(2rem, 5vw, 3.4rem);
}

.mode-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.mode-intro > div {
  display: grid;
  gap: 1rem;
}

.mode-intro p {
  max-width: 60ch;
  margin: 0;
}

.mode-grid,
.multiplayer-grid {
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.single-mode-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mode-card {
  min-height: 252px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  border-radius: 16px;
  padding: clamp(1rem, 2vw, 1.25rem);
  box-shadow: var(--shadow-hard);
  color: white;
}

.mode-card img {
  width: clamp(76px, 8vw, 104px);
  border-radius: 14px;
  box-shadow: 0 8px 0 oklch(0 0 0 / 0.18);
}

.mode-card h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.mode-card p {
  margin: 0;
  color: oklch(0.97 0.02 255);
  font-weight: 700;
  line-height: 1.45;
}

.mode-adventure {
  background: linear-gradient(145deg, oklch(0.64 0.25 300), oklch(0.71 0.2 323));
}

.mode-time {
  background: linear-gradient(145deg, oklch(0.57 0.21 245), oklch(0.74 0.18 195));
}

.mode-survival {
  background: linear-gradient(145deg, oklch(0.66 0.24 22), oklch(0.78 0.18 66));
}

.mode-thematic {
  background: linear-gradient(145deg, oklch(0.47 0.16 171), oklch(0.75 0.19 145));
}

.mode-infinite {
  background: linear-gradient(145deg, oklch(0.54 0.23 287), oklch(0.72 0.25 323));
}

.versus-section {
  display: grid;
  gap: clamp(2rem, 5vw, 3.4rem);
  padding: clamp(4rem, 8vw, 7rem) max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(115deg, oklch(0.22 0.16 23) 0%, oklch(0.26 0.17 45) 45%, oklch(0.2 0.14 155) 100%);
  border-block: 1px solid var(--line);
}

.versus-copy {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.versus-copy p {
  max-width: 60ch;
  margin: 0;
}

.multiplayer-layout {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.multiplayer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.multiplayer-card {
  min-height: 282px;
}

.mode-one-vs-one {
  background: linear-gradient(145deg, oklch(0.6 0.24 24), oklch(0.67 0.22 42));
}

.mode-battle {
  background: linear-gradient(145deg, oklch(0.78 0.18 70), oklch(0.86 0.18 92));
  color: oklch(0.18 0.08 84);
}

.mode-battle p {
  color: oklch(0.22 0.08 84);
}

.mode-coop {
  background: linear-gradient(145deg, oklch(0.44 0.16 170), oklch(0.77 0.16 178));
}

.multiplayer-phone {
  margin: 0;
}

.multiplayer-phone img {
  width: min(100%, 310px);
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.download-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(280px, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.download-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(54vw, 390px);
}

.download-mark img {
  width: min(74%, 310px);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.download-mark span {
  position: absolute;
  right: clamp(0.4rem, 4vw, 3rem);
  bottom: clamp(0.8rem, 5vw, 3.5rem);
  border-radius: 999px;
  background: var(--gold);
  color: oklch(0.18 0.08 84);
  padding: 0.72rem 1rem;
  font-family: Fredoka, Rubik, system-ui, sans-serif;
  font-weight: 900;
  box-shadow: 0 8px 0 oklch(0 0 0 / 0.18);
}

.store-copy {
  display: grid;
  gap: 1rem;
}

.store-copy p {
  max-width: 62ch;
  margin: 0;
}

.legal-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.legal-links {
  margin-top: 0.4rem;
}

.legal-links a {
  border-radius: 999px;
  background: oklch(1 0 0 / 0.13);
  color: var(--ink);
  padding: 0.68rem 0.85rem;
  font-weight: 900;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: oklch(0.1 0.08 265);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.5rem 0;
  color: var(--ink-muted);
}

.footer-links {
  font-weight: 800;
}

.footer-links a {
  text-decoration: none;
}

.legal-page {
  background:
    linear-gradient(145deg, oklch(0.16 0.1 264), oklch(0.12 0.08 263));
}

.legal-hero {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
}

.legal-hero h1 {
  max-width: 12ch;
  margin-top: 1rem;
  font-size: clamp(3rem, 8vw, 5rem);
}

.legal-layout {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.legal-layout section {
  border-top: 1px solid var(--line);
  padding: 1.7rem 0;
}

.legal-layout h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.legal-layout ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.policy-card,
.legal-callout {
  border-radius: 12px;
  background: oklch(1 0 0 / 0.085);
  padding: 1rem;
}

.policy-card h3 {
  margin-bottom: 0.65rem;
}

.policy-card p {
  margin: 0 0 1rem;
}

.legal-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.placeholder {
  border-radius: 0.35rem;
  background: var(--gold);
  color: oklch(0.19 0.07 74);
  padding: 0.08rem 0.28rem;
  font-weight: 900;
}

@keyframes float-in {
  from {
    opacity: 0;
    translate: 0 30px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 1120px) {
  .single-mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .phone-cluster {
    right: -34px;
    width: 460px;
    height: 610px;
    opacity: 0.74;
  }

  .poster-runway {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-poster-b,
  .store-poster-c,
  .store-poster-d {
    margin-top: 0;
  }

  .loop-band,
  .mode-intro,
  .versus-copy,
  .multiplayer-layout,
  .download-section {
    grid-template-columns: 1fr;
  }

  .loop-steps {
    padding-inline: 16px;
  }

  .multiplayer-phone {
    display: none;
  }
}

@media (max-width: 760px) {
  .multiplayer-grid,
  .single-mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main > section {
    scroll-margin-top: 152px;
  }

  .nav {
    min-height: auto;
    padding: 0.9rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.18rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 3rem;
    padding-bottom: 10rem;
  }

  .hero-media::before {
    background:
      linear-gradient(180deg, oklch(0.1 0.09 265 / 0.98) 0%, oklch(0.12 0.1 263 / 0.9) 48%, oklch(0.12 0.1 263 / 0.34) 100%);
  }

  .phone-cluster {
    right: 50%;
    bottom: -7.5rem;
    width: 330px;
    height: 410px;
    translate: 50% 0;
    opacity: 0.92;
  }

  .phone-shot-left,
  .phone-shot-right {
    display: none;
  }

  .phone-shot-main {
    right: 50%;
    bottom: 0;
    width: 220px;
    translate: 50% 0;
  }

  .hero-facts {
    display: none;
  }

  .poster-runway {
    grid-template-columns: 1fr;
  }

  .store-poster {
    max-width: 430px;
    margin-inline: auto;
  }

  .loop-steps {
    grid-template-columns: 1fr;
  }

  .loop-step {
    min-height: 190px;
  }

  .download-mark {
    min-height: 310px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand span {
    font-size: 1.12rem;
  }

  .nav-links {
    gap: 0.72rem;
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 4.2rem);
  }

  h2 {
    font-size: clamp(2.05rem, 13vw, 3rem);
  }

  .actions,
  .download-actions {
    display: flex;
    flex-wrap: nowrap;
  }

  .button {
    flex: 1 1 0;
    padding-inline: 0.8rem;
  }

  .section {
    padding-block: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
