@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0718;
  --bg-2: #120c2b;
  --ink: #f6f3ff;
  --muted: #aba4cf;
  --soft: #d6d0f2;
  --line: rgba(255, 255, 255, .085);
  --card: rgba(255, 255, 255, .04);
  --pink: #ff6fae;
  --violet: #8b6cff;
  --gold: #ffd36e;
  --cyan: #5fd4ff;
  --accent: var(--pink);
  --accent2: var(--violet);
  --maxw: 1200px;
  --gutter: 40px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Nunito", "MPlusRounded", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --mx: 0;
  --my: 0;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main, .site-footer { overflow-x: clip; }

img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.wrap { width: min(var(--maxw), 100% - var(--gutter)); margin-inline: auto; }
.narrow { width: min(840px, 100% - var(--gutter)); }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: #120c2b;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ------------------------------------------------------------ background */

@view-transition { navigation: auto; }

.nebula {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  pointer-events: none;
}
.nebula.on { opacity: 1; }
html.has-nebula .aurora { display: none; }

.scroll-bar { display: none; }
@supports (animation-timeline: scroll()) {
  .scroll-bar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 70;
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6fae, #8b6cff, #5fd4ff, #ffd36e);
    transform-origin: 0 50%;
    animation: scroll-grow linear both;
    animation-timeline: scroll(root);
    pointer-events: none;
  }
  @keyframes scroll-grow { from { scale: 0 1; } to { scale: 1 1; } }
}

/* ------------------------------------------------------------ opening */

.intro { display: none; }
html.intro-on .intro, .intro.is-active {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  cursor: pointer;
}
html.intro-on .intro { animation: intro-failsafe .01s 6s forwards; }
@keyframes intro-failsafe { to { visibility: hidden; } }
.intro-bg {
  position: absolute;
  inset: 0;
  background: #0a0718;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--r, 0px) - 70px), #000 var(--r, 0px));
  mask-image: radial-gradient(circle at 50% 50%, transparent calc(var(--r, 0px) - 70px), #000 var(--r, 0px));
}
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: #fff;
  font: 900 clamp(2.8rem, 8vw, 5.4rem)/1 var(--display);
  letter-spacing: -.02em;
  opacity: 0;
  translate: -50% -50%;
  transform-origin: 0 50%;
}
.intro-mark img { width: 1.25em; height: 1.25em; }
.intro-mark img + img { width: auto; height: 1.24em; margin-top: .1em; }
.intro-mark.show { animation: mark-pop .55s cubic-bezier(.2, 1.5, .35, 1) forwards; }
@keyframes mark-pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }

.sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.aurora {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1400px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 40% at 18% 12%, rgba(139, 108, 255, .34), transparent 70%),
    radial-gradient(36% 36% at 86% 18%, rgba(255, 111, 174, .26), transparent 70%),
    radial-gradient(50% 40% at 60% 62%, rgba(95, 212, 255, .10), transparent 70%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(10, 7, 24, .8);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  translate: var(--bx, 0) var(--by, 0);
  transition: translate .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand-mark { width: 40px; height: 40px; filter: drop-shadow(0 6px 14px rgba(255, 111, 174, .35)); transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-word { display: block; width: auto; height: 34px; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.sound-btn { width: 40px; height: 40px; }
.sound-btn .icon { width: 19px; height: 19px; grid-area: 1 / 1; }
.nav > ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav > ul a {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav > ul a:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  transition: background .2s;
}
.lang:hover { background: rgba(255, 255, 255, .08); }
.lang .icon { width: 17px; height: 17px; }
.lang .chev { width: 15px; height: 15px; margin-left: -2px; opacity: .7; transition: rotate .25s var(--ease); }

.lang-menu { position: relative; }
.lang-menu summary { cursor: pointer; list-style: none; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] .chev { rotate: 180deg; }
.lang-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 20px;
  background: rgba(20, 15, 46, .97);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 50px -16px rgba(0, 0, 0, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: drop .22s var(--ease);
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.lang-list a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.lang-list a.is-current { color: #fff; background: rgba(139, 108, 255, .2); }
.lang-list a.is-current::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

@keyframes drop { from { opacity: 0; translate: 0 -6px; } }

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  cursor: pointer;
  place-items: center;
}
.menu-btn .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
.menu-btn .i-close { opacity: 0; }
.menu-btn[aria-expanded="true"] .i-open { opacity: 0; }
.menu-btn[aria-expanded="true"] .i-close { opacity: 1; }

/* ------------------------------------------------------------ buttons */

.btn {
  position: relative;
  overflow: hidden;
  translate: var(--bx, 0) var(--by, 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .25s, translate .3s var(--ease);
}
.btn .icon { width: 20px; height: 20px; }
.btn > * { position: relative; z-index: 1; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }

.btn-primary {
  font-weight: 800;
  background: linear-gradient(180deg, #ff8cc4 0%, #f0559a 42%, #a557ff 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 6px 0 #57259f, 0 20px 36px -10px rgba(255, 111, 174, .65);
  text-shadow: 0 1px 0 rgba(90, 20, 110, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 8px 0 #57259f, 0 26px 46px -10px rgba(255, 111, 174, .8); }
.btn-primary:active { transform: translateY(5px) scale(.99); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 1px 0 #57259f, 0 6px 16px -6px rgba(255, 111, 174, .6); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  translate: -120% 0;
  pointer-events: none;
}
.btn-primary:hover::after { translate: 120% 0; transition: translate .75s var(--ease); }

.btn-ghost {
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 4px 0 rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3), 0 6px 0 rgba(0, 0, 0, .35); }
.btn-ghost:active { transform: translateY(3px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3), 0 1px 0 rgba(0, 0, 0, .35); }

.btn-store {
  background: #0c0920;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.btn-store .icon { color: var(--gold); width: 18px; height: 18px; }
.btn-store.is-soon { cursor: default; color: var(--soft); }
.btn-store.is-soon:hover { transform: none; }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  cursor: pointer;
  translate: var(--bx, 0) var(--by, 0);
  transition: background .2s, transform .25s var(--ease), translate .3s var(--ease);
}
.round-btn:hover { background: rgba(255, 255, 255, .14); }
.round-btn .icon { width: 21px; height: 21px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
}
.pill-test { color: var(--gold); background: rgba(255, 201, 77, .12); box-shadow: inset 0 0 0 1px rgba(255, 201, 77, .28); }
.pill-live { color: #63e6a0; background: rgba(99, 230, 160, .12); box-shadow: inset 0 0 0 1px rgba(99, 230, 160, .3); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

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

.hero { position: relative; padding: 28px 0 104px; isolation: isolate; }
.hero .wrap { --maxw: 1320px; }
.hero.is-hovering { cursor: grab; }
.hero.is-grabbing, .hero.is-grabbing * { cursor: grabbing; user-select: none; }
.toy { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 36px;
  min-height: calc(100svh - 150px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #e3ddff;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.eyebrow .dot { color: var(--pink); }

.hero-title {
  margin: 22px 0 24px;
  font: 900 clamp(2.9rem, 6.5vw, 6.3rem)/1.02 var(--display);
  letter-spacing: -.024em;
  text-wrap: balance;
  text-shadow: 0 .05em 0 #4b3aa8, 0 .16em .34em rgba(0, 0, 0, .4);
}
.hero-title > span { display: block; }
/* Ana başlık iki satır olarak tasarlandı: uzun dillerde (ES, PT, FR, JA) yazı sütuna sığacak kadar küçülür. */
.hero-copy { container-type: inline-size; }
#hero-title { font-size: min(clamp(2.9rem, 6.5vw, 6.3rem), calc(100cqi / var(--fit, 1))); }

.gold {
  background: linear-gradient(180deg, #fff6d2 0%, #ffd36e 42%, #ff9f43 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 .05em 0 #a8530c) drop-shadow(0 .14em .3em rgba(255, 150, 60, .35));
  padding-bottom: .06em;
}

/* Kinetic letters: every glyph is its own little block that pops in, and hops under the cursor. */
.is-split .wd { display: inline-block; white-space: nowrap; }
.is-split .ltr {
  display: inline-block;
  animation: ltr-in .72s cubic-bezier(.2, 1.5, .35, 1) both;
  animation-delay: calc(var(--i) * 26ms + 80ms);
}
.is-split .gold { background: none; }
.is-split .gold .ltr {
  background: linear-gradient(180deg, #fff6d2 0%, #ffd36e 42%, #ff9f43 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: .08em;
}
.is-split .ltr.hop { animation: ltr-hop .55s cubic-bezier(.2, 1.3, .4, 1); }
html.intro-on .ltr { animation-play-state: paused; }
@keyframes ltr-in {
  from { opacity: 0; transform: translateY(.6em) rotate(12deg) scale(.45); }
}
@keyframes ltr-hop {
  0%, 100% { transform: none; }
  40% { transform: translateY(-.2em) rotate(-5deg) scale(1.12); }
}

.hero-sub {
  max-width: 34em;
  margin: 0;
  color: var(--soft);
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  line-height: 1.65;
}

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.hero-cta.center { justify-content: center; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 18px 40px;
  margin: 48px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stats div { min-width: 0; }
.stats dt {
  font: 900 34px/1.1 var(--display);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #c9bfff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* stage: live phones under god rays */

.stage {
  position: relative;
  height: clamp(560px, 50vw, 690px);
  margin-bottom: 56px;
  isolation: isolate;
}

.rays {
  position: absolute;
  inset: -18%;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(214, 190, 255, .17) 0deg 5deg, transparent 5deg 17deg);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 62%);
  animation: spin 80s linear infinite;
}

.halo {
  position: absolute;
  left: 10%;
  top: 10%;
  width: 80%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 130, 255, .62), rgba(255, 111, 174, .16) 45%, transparent 68%);
  filter: blur(26px);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 50% { scale: 1.1; opacity: .8; } }

.phone {
  --bez: 9px;
  --rad: 46px;
  position: absolute;
  width: clamp(214px, 21.5vw, 300px);
  padding: var(--bez);
  border-radius: var(--rad);
  background: linear-gradient(160deg, #5146a0 0%, #221c4a 42%, #120e27 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 2px 0 rgba(255, 255, 255, .18),
    inset 0 -2px 0 rgba(0, 0, 0, .5),
    0 60px 100px -36px rgba(0, 0, 0, .95),
    0 0 130px -30px var(--glow, var(--violet));
  transition: transform .9s var(--ease), filter .35s;
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  border-radius: calc(var(--rad) - var(--bez));
}
/* power and volume keys */
.phone::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 21%;
  width: 3.5px;
  height: 9%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #6a5fbd, #2c2559);
  box-shadow: 0 calc(var(--rad) * 1.6) 0 #3b3276;
}
.phone::after {
  content: "";
  position: absolute;
  inset: var(--bez);
  z-index: 2;
  border-radius: calc(var(--rad) - var(--bez));
  background: linear-gradient(120deg, rgba(255, 255, 255, .13), transparent 30%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  pointer-events: none;
}
.phone-hole {
  position: absolute;
  top: calc(var(--bez) + 1.3%);
  left: 50%;
  z-index: 2;
  width: 3.6%;
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: #05040c;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .07);
}

.phone-back {
  left: 5%;
  top: 5%;
  rotate: -8deg;
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -10px), 0);
  animation: bob 9s ease-in-out infinite;
}
.phone-front {
  right: 4%;
  top: 13%;
  z-index: 2;
  rotate: 6deg;
  transform: translate3d(calc(var(--mx) * 16px), calc(var(--my) * 16px), 0);
  animation: bob 8s ease-in-out -3s infinite;
}
.phone-solo {
  left: calc(50% - clamp(115px, 12vw, 150px));
  top: 3%;
  width: clamp(230px, 24vw, 300px);
  rotate: 4deg;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 12px), 0);
  animation: bob 8s ease-in-out infinite;
}
.phone.is-live { cursor: pointer; }
@media (hover: hover) {
  .phone.is-live:hover { filter: brightness(1.08); z-index: 3; }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* live game inside a phone */

.demo-screen {
  position: absolute;
  left: var(--bez);
  right: var(--bez);
  top: var(--bez);
  z-index: 1;
  aspect-ratio: 1 / 2;
  overflow: hidden;
  border-radius: calc(var(--rad) - var(--bez));
  container-type: inline-size;
}
.demo-screen canvas { display: block; width: 100%; height: 100%; pointer-events: none; outline: 0; }
.is-still .demo-screen canvas { visibility: hidden; }
.demo-screen.is-playing canvas { pointer-events: auto; cursor: pointer; touch-action: none; visibility: visible; }

.demo-play {
  position: absolute;
  left: 50%;
  bottom: 5.5%;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 36px;
  max-width: 92%;
  padding: .62em 1.05em;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #e6dfff);
  color: #2a1a66;
  font: 900 max(11.5px, 5cqw)/1 var(--display);
  white-space: nowrap;
  cursor: pointer;
  translate: -50% 0;
  box-shadow: 0 .28em 0 #8f7ed8, 0 .9em 1.4em -.4em rgba(0, 0, 0, .7);
  animation: play-pulse 1.9s ease-in-out infinite;
}
.demo-play .icon { width: 1.05em; height: 1.05em; color: #ff4f9a; }
.demo-play:active { translate: -50% .22em; box-shadow: 0 .06em 0 #8f7ed8; }
.phone-back .demo-play { left: 37%; }
.demo-screen.is-playing .demo-play { display: none; }
@keyframes play-pulse { 50% { scale: 1.07; } }

.demo-exit, .demo-sound {
  position: absolute;
  top: 10.6cqw;
  z-index: 3;
  display: none;
  width: max(34px, 9.2cqw);
  height: max(34px, 9.2cqw);
  background: rgba(8, 10, 28, .68);
}
.demo-exit .icon, .demo-sound .icon { width: 55%; height: 55%; grid-area: 1 / 1; }
.demo-exit { left: 2.4cqw; }
.demo-sound { left: calc(3.6cqw + max(34px, 9.2cqw)); }
.demo-screen.is-playing .demo-exit, .demo-screen.is-playing .demo-sound { display: grid; }
.i-on { display: none; }
.is-on .i-on { display: block; }
.is-on .i-off { display: none; }
.is-on { color: var(--gold); }

.demo-hint {
  position: absolute;
  left: 7%;
  right: 7%;
  top: 41%;
  z-index: 2;
  padding: .85em 1em;
  border-radius: 1.1em;
  background: rgba(8, 10, 28, .9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  color: #fff;
  font: 900 max(13px, 4.1cqw)/1.35 var(--display);
  text-align: center;
  pointer-events: none;
  animation: fade .4s var(--ease);
}
.demo-hint[hidden], .demo-over[hidden] { display: none; }

.demo-over {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3cqw;
  padding: 7cqw;
  text-align: center;
  background: rgba(8, 8, 26, .86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .35s var(--ease);
}
.demo-over strong { font: 900 8.6cqw/1.1 var(--display); }
.demo-over-score { display: flex; flex-direction: column; align-items: center; }
.demo-over-score small { color: var(--muted); font: 900 3.6cqw/1.2 var(--display); letter-spacing: .08em; }
.demo-over-score b {
  font: 900 15cqw/1.1 var(--display);
  background: linear-gradient(180deg, #fff6d2, #ffb84d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.demo-over-best { color: var(--gold); font: 900 5cqw/1.2 var(--display); animation: play-pulse 1s ease-in-out infinite; }
.demo-over-best[hidden] { display: none; }
.demo-over .btn { height: auto; min-height: 44px; padding: .8em 1.3em; font-size: max(14px, 4cqw); white-space: normal; }
.demo-over p { margin: 0; color: var(--muted); font-size: max(11.5px, 3.1cqw); line-height: 1.4; }

/* the phone pops out of the page while you play */

.demo-dialog {
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: #fff;
}
.demo-dialog::backdrop { background: rgba(6, 4, 18, .97); }
.demo-dialog[open] { display: grid; place-items: center; animation: fade .3s var(--ease); }
.demo-box { display: flex; align-items: center; gap: 52px; }
.phone.demo-frame {
  --bez: 10px;
  --rad: 50px;
  position: relative;
  flex: none;
  width: min(calc((100svh - 44px) / 2), 440px);
  transition: none;
}
.demo-frame .demo-screen { position: relative; left: 0; right: auto; top: 0; width: 100%; }
.demo-side { width: 300px; animation: fade .5s var(--ease) .28s both; }
.demo-side h2 { margin: 0 0 14px; font-size: 2.4rem; word-break: keep-all; overflow-wrap: anywhere; }
.demo-side p { margin: 0 0 14px; color: var(--soft); }
.demo-side .note { max-width: none; margin-bottom: 22px; color: var(--muted); text-align: left; }
.demo-keys { color: var(--gold) !important; font-weight: 700; font-size: 15px; }
.demo-keys:empty { display: none; }
.demo-side .btn { white-space: normal; height: auto; min-height: 50px; padding-block: 12px; }
html.demo-open { overflow: hidden; }

/* page-wide effects */

.fx-overlay { position: fixed; inset: 0; z-index: 900; width: 100%; height: 100%; pointer-events: none; }
.fx-flash {
  position: fixed;
  inset: 0;
  z-index: 901;
  pointer-events: none;
  background: radial-gradient(circle at var(--x) var(--y), rgba(255, 250, 230, .55), rgba(255, 220, 170, .26) 40%, transparent 72%);
  animation: flash .6s ease-out forwards;
}
@keyframes flash { to { opacity: 0; } }

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 140, 255, .2), transparent 62%);
  pointer-events: none;
}

.stage-note {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: min(100%, 460px);
  margin: 10px 0 0;
  padding: 8px 16px;
  border-radius: 18px;
  background: rgba(10, 7, 24, .62);
  translate: -50% 0;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.35;
  text-align: center;
}
.stage-live { display: inline-flex; align-items: center; gap: 8px; }
.stage-live .dot { flex: none; color: #63e6a0; }
.stage-hint { color: var(--gold); font-weight: 700; }
.is-still ~ .stage-note .stage-live { display: none; }
@media (hover: hover) and (pointer: fine) { .only-touch { display: none; } }
@media (hover: none), (pointer: coarse) { .only-mouse { display: none; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  translate: -50% 0;
  animation: cue 2.2s ease-in-out infinite;
}
.scroll-cue .icon { width: 22px; height: 22px; }
@keyframes cue { 50% { translate: -50% 9px; } }
@media (max-width: 1080px) { .scroll-cue { display: none; } }

/* ------------------------------------------------------------ word band */

.band {
  position: relative;
  z-index: 2;
  width: 106vw;
  margin: -34px -3vw 0;
  padding: 16px 0;
  overflow: hidden;
  background: linear-gradient(90deg, #ff6fae, #b061ff 34%, #5fd4ff 67%, #ffd36e);
  box-shadow: 0 24px 60px -24px rgba(255, 111, 174, .7), inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -5px 0 rgba(26, 12, 74, .3);
  rotate: -1.6deg;
  transform: skewX(var(--skew, 0deg));
}
.band-track { display: flex; width: max-content; animation: band 44s linear infinite; }
.band-run { display: flex; align-items: center; gap: 24px; padding-right: 24px; }
.band-word {
  color: #150b36;
  font: 900 clamp(1.45rem, 3vw, 2.5rem)/1.05 var(--display);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.tile.band-tile { position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px; font-size: 17px; box-shadow: inset 0 -5px 0 var(--t3), inset 0 2px 0 rgba(255, 255, 255, .5); }
.tile.band-tile::before { inset: 4px 6px auto; border-radius: 9px; }
.band.is-paused .band-track { animation-play-state: paused; }
@keyframes band { to { translate: -50% 0; } }

/* block tiles used in the band, test steps, game pages and the 404 page */

.tile {
  --t1: #ff8cc0; --t2: #f0559a; --t3: #c23a7b;
  position: absolute;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 23px;
  color: #fff;
  font: 900 31px/1 var(--display);
  text-shadow: 0 3px 0 rgba(0, 0, 0, .2);
  background: linear-gradient(180deg, var(--t1), var(--t2));
  box-shadow:
    inset 0 -8px 0 var(--t3),
    inset 0 2px 0 rgba(255, 255, 255, .5),
    0 22px 34px -14px rgba(0, 0, 0, .7),
    0 0 46px -10px var(--t2);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 7px 9px auto;
  height: 30%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), transparent);
  pointer-events: none;
}
.tile span { position: relative; translate: 0 -2px; }
.tile-pink { --t1: #ff92c4; --t2: #ee5292; --t3: #b82c66; }
.tile-violet { --t1: #b595ff; --t2: #8659ee; --t3: #5733b8; }
.tile-gold { --t1: #ffe58a; --t2: #ffc94a; --t3: #d98e1c; }
.tile-red { --t1: #ff7272; --t2: #e2353f; --t3: #a81e2a; }
.tile-blue { --t1: #74cbff; --t2: #3496f0; --t3: #1e62be; }
.tile-green { --t1: #7be8a4; --t2: #34c47e; --t3: #1f8c5a; }

/* ------------------------------------------------------------ sections */

.section { position: relative; padding: clamp(76px, 10vw, 136px) 0; }
.section.tight { padding: 24px 0; }

.section-head { max-width: 740px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.14rem; }

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 16px;
  font: 900 clamp(2.05rem, 4.2vw, 3.35rem)/1.08 var(--display);
  letter-spacing: -.016em;
  text-wrap: balance;
}

/* ------------------------------------------------------------ game worlds */

.worlds { position: relative; padding-top: clamp(90px, 11vw, 150px); }
.worlds-head { margin-bottom: 0; }

.world {
  position: relative;
  padding: clamp(70px, 9vw, 130px) 0 clamp(40px, 6vw, 90px);
  isolation: isolate;
}
.world-banner {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: clamp(300px, 40vw, 620px);
  overflow: hidden;
  opacity: .5;
  /* Only the art on the right: the banner's own title would double the real headline. */
  -webkit-mask-image: linear-gradient(to right, transparent 48%, #000 74%), linear-gradient(to bottom, transparent, #000 22%, #000 42%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 48%, #000 74%), linear-gradient(to bottom, transparent, #000 22%, #000 42%, transparent 100%);
  mask-composite: intersect;
}
.world-banner img { display: block; width: 100%; height: 124%; object-fit: cover; }

.world-head { position: relative; max-width: 860px; }
.world-num {
  position: absolute;
  right: -30%;
  top: -.26em;
  z-index: -1;
  color: transparent;
  font: 900 clamp(8rem, 22vw, 21rem)/.9 var(--display);
  letter-spacing: -.04em;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 42%, transparent);
  pointer-events: none;
}
.world-title {
  width: fit-content;
  margin: 20px 0 6px;
  font: 900 clamp(2.9rem, 7.6vw, 6.8rem)/1.02 var(--display);
  letter-spacing: -.024em;
  background: linear-gradient(100deg, #fff 8%, var(--accent) 58%, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 .05em 0 color-mix(in srgb, var(--accent2) 60%, #000));
}
.world-title a { color: inherit; text-decoration: none; }

.game-id { display: flex; align-items: center; gap: 18px; }
.game-id > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

.app-icon {
  display: block;
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 24%;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .12);
}

.genre { color: var(--soft); font-size: 15px; }

.tagline {
  margin: 14px 0 8px;
  width: fit-content;
  font: 900 clamp(1.3rem, 2.3vw, 1.85rem)/1.25 var(--display);
  color: #fff;
}
.tagline.big { margin: 0 0 18px; }

.lead { max-width: 40em; margin: 0 0 28px; color: var(--soft); font-size: 1.1rem; }

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

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: gap .25s var(--ease), color .2s;
}
.more:hover { gap: 13px; color: var(--gold); }
.more .icon { width: 19px; height: 19px; }

/* scrollytelling: the phone stays, the page tells the story, the game acts it out */

.world-play {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  margin-top: clamp(36px, 5vw, 70px);
}
.world-stage { position: sticky; top: 88px; align-self: start; display: flex; justify-content: center; }
.world-phone { --pw: min(350px, calc((100svh - 118px) / 2.02)); position: relative; width: var(--pw); }
.world-phone::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 46%, transparent), transparent 66%);
  filter: blur(22px);
}
.phone.phone-world { position: relative; width: 100%; }

.world-steps { display: grid; margin: 0; padding: 12svh 0 18svh; list-style: none; }
.wstep { display: flex; align-items: center; min-height: 58svh; cursor: pointer; }
.wstep-card {
  position: relative;
  display: flex;
  gap: 20px;
  width: 100%;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: opacity .5s var(--ease), scale .6s var(--ease), background .5s, box-shadow .5s, translate .5s var(--ease), transform .5s var(--ease);
}
.js .wstep-card { opacity: .34; scale: .95; }
.js .wstep.is-active .wstep-card {
  opacity: 1;
  scale: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, rgba(16, 10, 44, .8)), rgba(16, 10, 44, .72));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 66%, transparent), 0 34px 90px -34px var(--accent);
}
.wstep-card h4 { margin: 2px 0 8px; font: 900 clamp(1.5rem, 2.5vw, 2.1rem)/1.14 var(--display); }
.wstep-card p { margin: 0; color: var(--soft); font-size: 1.08rem; line-height: 1.55; }

.highlight-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 26px -12px var(--accent), inset 0 2px 0 rgba(255, 255, 255, .38), inset 0 -4px 0 rgba(0, 0, 0, .18);
}
.highlight-icon .icon { width: 28px; height: 28px; }

/* gallery: a full-bleed coverflow */

.gallery-wrap { position: relative; margin-inline: calc(50% - 50vw); padding-bottom: 44px; }
.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 max(24px, calc(50vw - 600px));
}
.gallery-title { color: var(--soft); font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.gallery-nav { display: flex; gap: 8px; }

.gallery {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 18px max(24px, calc(50vw - 600px)) 30px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(24px, calc(50vw - 600px));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
  perspective: 1400px;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging .shot { pointer-events: none; }
.gallery li { flex: 0 0 auto; scroll-snap-align: start; }
@supports (animation-timeline: view(inline)) {
  @media (prefers-reduced-motion: no-preference) {
    .gallery li { animation: coverflow linear both; animation-timeline: view(inline); }
    @keyframes coverflow {
      0% { transform: rotateY(38deg) scale(.82); opacity: .4; }
      26%, 74% { transform: none; opacity: 1; }
      100% { transform: rotateY(-38deg) scale(.82); opacity: .4; }
    }
  }
}

.shot {
  display: block;
  width: clamp(196px, 20.5vw, 262px);
  aspect-ratio: 1 / 2;
  padding: 0;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #15102e;
  cursor: zoom-in;
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.shot:hover { transform: translateY(-9px) scale(1.02); box-shadow: 0 40px 60px -22px rgba(0, 0, 0, .9), 0 0 0 1.5px rgba(255, 255, 255, .24); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }

/* tilt cards pick up a glare that follows the cursor */

[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
[data-tilt].is-tilting { transition-duration: .5s, .6s, .5s, .5s, .5s, .08s; }
[data-tilt]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .13), transparent 62%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
[data-tilt].is-tilting::before { opacity: 1; }

/* headline words rise out of a mask */

.w { display: inline-block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; vertical-align: top; }
.w > span { display: inline-block; translate: 0 112%; transition: translate 1s var(--ease) calc(var(--i) * 60ms + var(--d, 0ms)); }
.reveal.in .w > span { translate: 0 0; }
.js .reveal.rise:has(.w) { opacity: 1; translate: none; }

/* ------------------------------------------------------------ studio */

.studio { overflow: clip; }
.ghost-word {
  position: absolute;
  left: 50%;
  top: 2%;
  z-index: -1;
  color: transparent;
  font: 900 clamp(6rem, 25vw, 24rem)/1 var(--display);
  letter-spacing: -.04em;
  white-space: nowrap;
  translate: -50% 0;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .08);
  pointer-events: none;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  position: relative;
  padding: 32px 30px 30px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), background .3s, opacity .8s var(--ease) var(--d, 0ms), translate .8s var(--ease) var(--d, 0ms);
}
.principle.is-tilting { transition-duration: .08s, .3s, .8s, .8s; transition-delay: 0s; }
.principle::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pc, rgba(255, 111, 174, .2)), transparent 70%);
  opacity: .5;
  transition: opacity .4s;
  pointer-events: none;
}
.principle:hover::after { opacity: 1; }
.principle h3 { margin: 22px 0 8px; font: 900 1.4rem/1.2 var(--display); }
.principle p { margin: 0; color: var(--muted); font-size: 15.5px; }

.principle-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 12px 26px -12px var(--c1), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.principle-icon .icon { width: 26px; height: 26px; }
.principle:nth-child(1) { --c1: #ff6fae; --c2: #8b6cff; --pc: rgba(255, 111, 174, .22); }
.principle:nth-child(2) { --c1: #5fd4ff; --c2: #3b6cf0; --pc: rgba(95, 212, 255, .2); }
.principle:nth-child(3) { --c1: #ffd36e; --c2: #ff8a3d; --pc: rgba(255, 190, 80, .2); }
.principle:nth-child(4) { --c1: #ff8a6b; --c2: #ff4f9a; --pc: rgba(255, 120, 110, .2); }
.principle:nth-child(5) { --c1: #a98bff; --c2: #5fd4ff; --pc: rgba(169, 139, 255, .22); }
.principle:nth-child(6) { --c1: #63e6a0; --c2: #2fb3c9; --pc: rgba(99, 230, 160, .18); }

/* ------------------------------------------------------------ test team */

.test-panel {
  position: relative;
  padding: clamp(40px, 6vw, 76px);
  border-radius: 42px;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at 50% 0%, rgba(139, 108, 255, .32), transparent 62%),
    linear-gradient(180deg, #1b1442, #110b2b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .11), 0 50px 120px -50px rgba(124, 92, 255, .6);
}
.test-glow {
  position: absolute;
  left: 50%;
  top: -60%;
  width: 140%;
  aspect-ratio: 1;
  translate: -50% 0;
  background: repeating-conic-gradient(from 0deg, rgba(196, 170, 255, .08) 0deg 4deg, transparent 4deg 14deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%);
  animation: spin 140s linear infinite;
  pointer-events: none;
}
.test-panel > :not(.test-glow) { position: relative; }
.test-panel .section-head { margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 52px 0 44px;
  padding: 0;
  list-style: none;
}
.step {
  padding: 30px 24px 28px;
  border-radius: 28px;
  text-align: center;
  background: rgba(8, 5, 22, .38);
  box-shadow: inset 0 0 0 1px var(--line);
}
.step h3 { margin: 0 0 8px; font: 900 1.22rem/1.25 var(--display); }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.step-tile {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 19px;
  font-size: 29px;
}
.step-tile.sm {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: inset 0 -4px 0 var(--t3), inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 18px -10px rgba(0, 0, 0, .7);
}
.step-tile.sm::before { inset: 4px 5px auto; border-radius: 8px; }

.test-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.note { max-width: 580px; margin: 0; color: var(--muted); font-size: 14px; text-align: center; }

/* ------------------------------------------------------------ contact */

.contact { padding-top: 0; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255, 111, 174, .08), rgba(255, 255, 255, .03) 50%, rgba(95, 212, 255, .06));
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact-card p { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 30em; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.mail-big {
  font: 900 clamp(1.45rem, 3vw, 2.3rem)/1.15 var(--display);
  text-decoration: none;
  background: linear-gradient(90deg, #fff, #ffd36e, #ff8cc4, #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -300% 0; } }
.mail-support { display: inline-flex; align-items: center; gap: 9px; color: var(--soft); text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.mail-support:hover { color: var(--gold); }
.mail-support b { color: #fff; font-weight: 700; }
.mail-support .icon { color: var(--pink); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ game page */

.hero-game .hero-grid { min-height: calc(100svh - 160px); }
.hero-game .hero-title { font-size: clamp(3rem, 6.8vw, 6rem); margin: 22px 0 14px; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s, gap .25s var(--ease);
}
.crumb:hover { color: #fff; gap: 9px; }
.crumb .icon { width: 18px; height: 18px; }

.game-id.big .app-icon { width: 112px; height: 112px; }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: 56px;
}
.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.about-copy p { color: var(--soft); font-size: 1.1rem; }
.about-grid + .world-play { margin-top: clamp(50px, 7vw, 100px); }

.how {
  padding: 32px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.how h3 { margin: 0 0 22px; font: 900 1.35rem/1.2 var(--display); }
.how ol { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.how li { display: flex; align-items: center; gap: 16px; color: var(--soft); }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}
.features .icon { margin-top: 2px; color: var(--accent); width: 22px; height: 22px; }

.other-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 32px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  transition: transform .45s var(--ease), background .3s, opacity .8s var(--ease), translate .8s var(--ease);
}
.other-card .app-icon { width: 88px; height: 88px; }
.other-card .kicker { margin-bottom: 4px; }
.other-card h3 { margin: 0 0 6px; font: 900 1.7rem/1.1 var(--display); }
.other-card p { margin: 0; color: var(--muted); }
.other-card .round-btn { margin-left: auto; }
.other-card:hover .round-btn { background: rgba(255, 255, 255, .16); transform: translateX(3px); }

/* ------------------------------------------------------------ legal + 404 */

.legal { padding-top: 40px; }
.legal-card {
  margin-top: 6px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 34px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.legal-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.legal-head .app-icon { width: 64px; height: 64px; flex: none; }
.legal-head > div { min-width: 0; }
.legal h1 { margin: 0 0 4px; font: 900 clamp(1.6rem, 3.4vw, 2.3rem)/1.15 var(--display); hyphens: auto; overflow-wrap: break-word; }
.legal h1 + p { margin: 0; }
.legal h2 { margin: 34px 0 10px; font: 900 1.25rem/1.3 var(--display); }
.legal p { color: var(--soft); }
.legal a { color: var(--gold); overflow-wrap: anywhere; }

.notfound { min-height: calc(100svh - 360px); display: grid; align-items: center; }
.notfound h1 { margin: 0 0 14px; font: 900 clamp(2.2rem, 5vw, 3.5rem)/1.1 var(--display); }
.notfound .hero-sub { margin-inline: auto; }
.notfound .muted { margin: 10px 0 0; font-size: 15px; }
.nf-tiles { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; }
.nf-tile {
  position: relative;
  width: clamp(80px, 14vw, 116px);
  height: clamp(80px, 14vw, 116px);
  border-radius: 30%;
  font-size: clamp(40px, 7vw, 62px);
  animation: bob 3.4s ease-in-out infinite;
}
.nf-tile:nth-child(2) { animation-delay: -.6s; }
.nf-tile:nth-child(3) { animation-delay: -1.2s; }

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

.site-footer { margin-top: 64px; padding: 64px 0 34px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .34)); }
.site-footer:has(.footer-sky) { padding-bottom: 0; }
.footer-sky { position: relative; height: clamp(190px, 24vw, 320px); margin-top: 24px; overflow: hidden; cursor: pointer; }
.footer-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-word {
  position: absolute;
  left: 50%;
  bottom: -.14em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 900 clamp(5rem, 24vw, 25rem)/.95 var(--display);
  letter-spacing: -.035em;
  white-space: nowrap;
  translate: -50% 0;
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin: 16px 0 18px; color: var(--muted); }
.footer-mail { display: flex; width: fit-content; align-items: center; gap: 9px; margin-top: 8px; color: #fff; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.footer-mail:hover { color: var(--gold); }
.footer-h { margin: 6px 0 16px; color: #8d86b6; font: 800 13px/1.2 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 10px 0; }
.site-footer li a { color: var(--soft); text-decoration: none; transition: color .2s; }
.site-footer li a:hover { color: #fff; }
.site-footer .current { color: #fff; font-weight: 700; }
.footer-bottom { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: #7c76a3; font-size: 14px; }

/* ------------------------------------------------------------ lightbox */

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop { background: rgba(6, 4, 16, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: center; animation: fade .3s var(--ease); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; padding: 24px 96px; }
.lightbox img {
  display: block;
  max-height: calc(100vh - 120px);
  max-width: 100%;
  aspect-ratio: 1 / 2;
  border-radius: 30px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1);
}
.lightbox figcaption { color: var(--soft); font-weight: 600; text-align: center; }
.lightbox .round-btn { position: fixed; }
.lb-prev { left: 28px; top: 50%; translate: 0 -50%; }
.lb-next { right: 28px; top: 50%; translate: 0 -50%; }
.lb-close { right: 24px; top: 24px; }

@keyframes fade { from { opacity: 0; } }

/* ------------------------------------------------------------ japanese */

/* Uzun ünlü (ー) ve küçük kana satır başına düşmesin; başlıklar yalnızca ・ ve ： sonrasında bölünsün. */
:lang(ja) { line-break: strict; }
:lang(ja) :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
/* Japonca kelimeler (スーパーノヴァ) bölünemediği için oyun başlığı biraz daha küçük: sütuna tek parça sığsın. */
.hero-game .hero-title:lang(ja) { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
.world-title:lang(ja) { font-size: clamp(2.2rem, 5.6vw, 4.8rem); }

/* ------------------------------------------------------------ reveal */

.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease) var(--d, 0ms), translate .9s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  /* The live phones belong on the first screen: headline, phones, then the rest of the copy. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; container-type: inline-size; }
  .hero-copy { display: contents; }
  .eyebrow, .crumb { justify-self: start; }
  .hero-title { order: 1; margin-bottom: 8px; }
  .stage { order: 2; margin-top: 18px; }
  .tagline.big, .hero-sub { order: 3; }
  .hero-cta { order: 4; }
  .stats { order: 5; }
  .hero-game .hero-grid { min-height: 0; }
  .stage { width: min(620px, 100%); margin-inline: auto; height: clamp(480px, 82vw, 640px); margin-bottom: 76px; }
  .phone { width: clamp(190px, 38vw, 280px); }
  .phone-solo { width: clamp(220px, 42vw, 290px); left: calc(50% - clamp(110px, 21vw, 145px)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  /* Blur over live canvases costs a phone more than the games themselves. */
  .site-header.is-scrolled { background: rgba(10, 7, 24, .94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .eyebrow, .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .world-play { display: block; }
  .world-stage { top: 72px; z-index: 3; pointer-events: none; }
  .world-stage .phone { pointer-events: auto; }
  .world-phone { --pw: min(58vw, calc((100svh - 310px) / 2)); }
  .world-steps { position: relative; z-index: 2; padding: 22px 0 16svh; }
  .wstep { align-items: flex-start; min-height: 46svh; }
  .wstep-card { padding: 20px; gap: 14px; border-radius: 24px; }
  .js .wstep-card { opacity: 0; scale: 1; translate: 0 22px; }
  .js .wstep.is-active .wstep-card { translate: 0 0; }
  .wstep-card h4 { font-size: 1.28rem; margin-bottom: 4px; }
  .wstep-card p { font-size: .98rem; line-height: 1.45; }
  .highlight-icon { width: 46px; height: 46px; border-radius: 15px; }
  .highlight-icon .icon { width: 23px; height: 23px; }
  .world-num { right: 0; }
  .demo-side { display: none; }
  .demo-box { width: 100%; justify-content: center; }
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: 26px;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    background: #120d2a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -20px rgba(0, 0, 0, .8);
    opacity: 0;
    visibility: hidden;
    translate: 0 -10px;
    transition: opacity .25s var(--ease), translate .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .25s var(--ease), translate .3s var(--ease); }
  .nav > ul { flex-direction: column; gap: 2px; }
  .nav > ul a { padding: 14px 16px; border-radius: 16px; font-size: 17px; }
  .lang { justify-content: center; height: 48px; border-radius: 16px; }
  .lang-menu summary.lang { display: flex; }
  .nav .lang-list {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 8px;
    padding: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav .lang-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .nav .lang-list a { display: flex; justify-content: center; padding: 12px; border-radius: 14px; font-size: 15px; background: rgba(255, 255, 255, .05); }
  .nav .lang-list a.is-current { color: #fff; background: rgba(139, 108, 255, .28); box-shadow: inset 0 0 0 1px rgba(170, 145, 255, .45); }
  .nav .lang-list a.is-current::after { display: none; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-actions { align-items: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 14px; margin: 40px 0 36px; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; text-align: left; align-items: center; padding: 22px; }
  .step .step-tile { grid-row: span 2; margin: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 32px; }
  body { font-size: 16px; }
  .header-row { height: 68px; }
  .nav { top: 76px; }
  .brand-word { height: 31px; }
  .hero { padding: 20px 0 40px; }
  .hero-title { margin: 20px 0 18px; }
  .hero-cta { margin-top: 28px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 40px; }
  .stats dt { font-size: 26px; }
  .stage { height: 128vw; max-height: 560px; }
  .phone { --bez: 6px; --rad: 30px; width: 46vw; }
  .phone-back { left: 1%; }
  .phone-front { right: 0; top: 14%; }
  .phone-solo { width: 54vw; left: 23vw; top: 3%; }
  .phone.demo-frame { --bez: 0px; --rad: 0px; width: min(100vw, calc(100svh / 2)); background: none; box-shadow: none; }
  .phone.demo-frame::before, .phone.demo-frame::after { display: none; }
  .demo-box { gap: 0; }
  .tile { width: 58px; height: 58px; border-radius: 17px; font-size: 23px; box-shadow: inset 0 -6px 0 var(--t3), inset 0 2px 0 rgba(255, 255, 255, .5), 0 16px 26px -12px rgba(0, 0, 0, .7); }
  .tile::before { inset: 5px 7px auto; border-radius: 10px; }
  .band { padding: 12px 0; margin-top: -20px; }
  .tile.band-tile { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
  .step-tile { width: 52px; height: 52px; font-size: 24px; border-radius: 16px; }
  .step-tile.sm { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
  .app-icon { width: 78px; height: 78px; }
  .more { margin: 6px 0 0; }
  .game-id.big .app-icon { width: 92px; height: 92px; }
  .game-cta .btn { flex: 1 1 auto; }
  .gallery { gap: 14px; }
  .shot { width: 60vw; border-radius: 22px; }
  .gallery-wrap { padding-bottom: 28px; }
  .principles { grid-template-columns: 1fr; gap: 14px; }
  .principle { padding: 26px 24px; }
  .test-panel { border-radius: 32px; padding: 36px 20px; }
  .contact-card { border-radius: 30px; padding: 30px 22px; }
  .contact-btns .btn { flex: 1 1 auto; }
  .how { padding: 24px 20px; }
  .features { grid-template-columns: 1fr; }
  .other-card { padding: 22px 20px; gap: 16px; border-radius: 26px; }
  .other-card .app-icon { width: 64px; height: 64px; }
  .other-card p { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .lightbox figure { padding: 16px 12px 84px; }
  .lightbox img { max-height: calc(100vh - 150px); border-radius: 22px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; translate: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-close { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}
