/* Polarity Spiral's website. The colors are the game's (src/config/constants.js): the two poles,
   pink [255,61,110] and blue [54,183,255], on the night of its first background. Dark only, like
   the game. */

/* The fonts as Google Fonts serves them (2026-10-08, SIL OFL 1.1, the licences beside them): each
   family's latin subset (the game's), latin-ext for Turkish and the like, cyrillic for Russian.
   A browser fetches a subset only for a page that uses a letter in its range. */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/assets/fonts/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/assets/fonts/unbounded-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/assets/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #0A0B1E;
  --bg-2: #0E1030;
  --card: #12153A;
  --line: rgba(160, 170, 255, 0.14);
  --line-2: rgba(160, 170, 255, 0.24);
  --text: #EEF0FF;
  --muted: #A9AED8;
  --dim: #7A80B0;
  --n: 255, 61, 110;
  --s: 54, 183, 255;
  --violet: #9B7BFF;
  --gold: #FFD35A;
  --link: #8FD3FF;
  --grad: linear-gradient(90deg, #FF3D6E, #9B7BFF 50%, #36B7FF);
  --display: 'Unbounded', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: 16px;
  color-scheme: dark;
}
:lang(ja) { --body: 'Manrope', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, 'Noto Sans JP', system-ui, sans-serif; }
:lang(ko) { --body: 'Manrope', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif; }
:lang(ja) :is(h1, h2, h3, p, li, summary) { word-break: auto-phrase; line-break: strict; }
:lang(ko) :is(h1, h2, h3, p, li, summary) { word-break: keep-all; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(155, 123, 255, 0.45); color: #fff; }

.skip {
  position: fixed; left: var(--gutter); top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 12px max(var(--gutter), env(safe-area-inset-left, 0px));
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled, .page .top {
  background: rgba(10, 11, 30, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 20px rgba(155, 123, 255, 0.3); }
.brand-word { font: 700 15px/1 var(--display); letter-spacing: 0.01em; white-space: nowrap; }
.brand-word em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: none; gap: 28px; margin: 0 auto; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; transition: color 0.2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.top-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 1040px) {
  .nav { display: flex; }
  .top-end { margin-left: 0; }
}
@media (max-width: 420px) { .top .brand-word { display: none; } }

.langs { position: relative; }
.langs summary {
  display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer;
  height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--muted); font-size: 14px; font-weight: 700; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--text); border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.langs summary svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 6px; list-style: none;
  min-width: 230px; max-height: min(70vh, 480px); overflow: auto;
  background: rgba(20, 23, 56, 0.97); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: drop 0.22s var(--ease);
}
.langs a { display: block; padding: 9px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; }
.langs a:hover { background: rgba(255, 255, 255, 0.07); }
.langs a[aria-current] { background: rgba(155, 123, 255, 0.2); }
@media (max-width: 560px) { .langs summary span { display: none; } .langs summary { width: 40px; padding: 0; justify-content: center; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 14px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: #fff; background: var(--grad); background-size: 160% 100%; background-position: 0 0;
  box-shadow: 0 10px 30px rgba(155, 123, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: background-position 0.5s var(--ease), translate 0.2s var(--ease), box-shadow 0.3s;
}
.btn:hover { background-position: 100% 0; translate: 0 -2px; box-shadow: 0 14px 40px rgba(155, 123, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-small { height: 40px; padding: 0 16px; font-size: 12px; }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.play-ic { width: 26px; height: 26px; border-radius: 50%; background: #fff; position: relative; flex: none; }
.play-ic::after { content: ''; position: absolute; left: 10px; top: 7.5px; border-left: 9px solid var(--bg); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px; min-width: 176px;
  height: 58px; padding: 0 20px 0 16px; border-radius: 16px;
  background: #05060F; border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; text-decoration: none; text-align: left;
  transition: translate 0.2s var(--ease), border-color 0.2s, box-shadow 0.3s;
}
.store small { display: block; font: 600 11px/1.2 var(--body); letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.78); }
.store b { display: block; font: 700 19px/1.15 var(--display); letter-spacing: 0; }
.store-ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.store-play .store-ic { background: linear-gradient(135deg, #36B7FF, #28E07C 45%, #FFD35A 70%, #FF3D6E); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 25px; }
.store-apple .store-ic {
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 1.5h8A2.5 2.5 0 0 1 18.5 4v16a2.5 2.5 0 0 1-2.5 2.5H8A2.5 2.5 0 0 1 5.5 20V4A2.5 2.5 0 0 1 8 1.5Zm0 2a.5.5 0 0 0-.5.5v16c0 .3.2.5.5.5h8c.3 0 .5-.2.5-.5V4a.5.5 0 0 0-.5-.5h-1.3l-.4.8a1 1 0 0 1-.9.5h-2.8a1 1 0 0 1-.9-.5l-.4-.8H8Zm2.5 15h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z'/%3E%3C/svg%3E") center / 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 1.5h8A2.5 2.5 0 0 1 18.5 4v16a2.5 2.5 0 0 1-2.5 2.5H8A2.5 2.5 0 0 1 5.5 20V4A2.5 2.5 0 0 1 8 1.5Zm0 2a.5.5 0 0 0-.5.5v16c0 .3.2.5.5.5h8c.3 0 .5-.2.5-.5V4a.5.5 0 0 0-.5-.5h-1.3l-.4.8a1 1 0 0 1-.9.5h-2.8a1 1 0 0 1-.9-.5l-.4-.8H8Zm2.5 15h3a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5Z'/%3E%3C/svg%3E") center / 24px no-repeat;
}
a.store:hover { translate: 0 -3px; border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 12px 32px rgba(54, 183, 255, 0.25); }
.store-soon { opacity: 0.62; border-style: dashed; cursor: default; }
.store-lg { height: 66px; min-width: 200px; padding: 0 24px 0 18px; border-radius: 18px; }
.store-lg b { font-size: 21px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 100px 0 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; touch-action: pan-y; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(130% 42% at 50% 22%, rgba(10, 11, 30, 0.82), rgba(10, 11, 30, 0.35) 62%, rgba(10, 11, 30, 0) 85%),
    linear-gradient(to bottom, rgba(10, 11, 30, 0) 80%, var(--bg));
}
.hero-in { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; display: grid; gap: 40px; }
.hero-copy {
  container-type: inline-size;
  text-align: center; display: flex; flex-direction: column; align-items: center;
  min-height: calc(100svh - 100px); padding-bottom: 220px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10, 11, 30, 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 700 11px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; animation: pole 2.4s ease-in-out infinite; }
.dot-n { background: rgb(var(--n)); box-shadow: 0 0 10px rgb(var(--n)); }
.dot-s { background: rgb(var(--s)); box-shadow: 0 0 10px rgb(var(--s)); margin-left: -4px; animation-delay: -1.2s; }
@keyframes pole { 50% { transform: scale(0.6); opacity: 0.6; } }
.logo {
  margin: 22px 0 18px; line-height: 0.92; font-weight: 800; letter-spacing: 0.01em;
  font-size: clamp(40px, 12.6vw, 96px); font-size: clamp(40px, 14.4cqi, 112px);
}
.logo span { display: block; }
.logo-1 {
  background: linear-gradient(90deg, #FF3D6E, #B866E6 35%, #7E8BFF 62%, #36B7FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(155, 123, 255, 0.4));
}
/* the outline over a dark fill, as the game's feature graphic draws it: the variable font's
   overlapping contours would show through a bare outline */
.logo-2 {
  color: var(--bg); -webkit-text-stroke: 4px #EEF0FF; paint-order: stroke fill;
  letter-spacing: 0.135em; text-indent: 0.135em;
  filter: drop-shadow(0 0 18px rgba(54, 183, 255, 0.35));
}
.tagline { font: 700 clamp(18px, 4.6cqi, 26px)/1.3 var(--display); letter-spacing: -0.005em; text-wrap: balance; }
.lead { margin-top: 14px; max-width: 34em; color: var(--muted); font-size: clamp(16px, 2.6cqi, 18.5px); text-wrap: pretty; }
.hero .stores { margin-top: 28px; justify-content: center; }
.hero .btn-ghost { margin-top: 16px; }
.hero-phone { display: grid; place-items: center; padding-bottom: 56px; }
.phone {
  position: relative; width: clamp(230px, 64vw, 300px); aspect-ratio: 9 / 16; padding: 9px; border-radius: 40px;
  background: linear-gradient(160deg, #2A2E5E, #0D0F26 60%, #1B1E45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; background: var(--bg); }
.phone::before {
  content: ''; position: absolute; left: 50%; top: 18px; width: 64px; height: 18px; margin-left: -32px; z-index: 2;
  border-radius: 12px; background: #04050C; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone-glow::after {
  content: ''; position: absolute; inset: -3px; z-index: -1; border-radius: 43px;
  background: linear-gradient(160deg, rgb(var(--n)), #9B7BFF 50%, rgb(var(--s)));
  filter: blur(28px); opacity: 0.6; animation: breathe 3.2s ease-in-out infinite alternate;
}
@keyframes breathe { to { opacity: 0.3; transform: scale(0.97); } }
.tap-hint {
  position: absolute; left: 50%; top: calc(var(--orb-y, 80svh) + 46px); translate: -50% 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 700 11px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(238, 240, 255, 0.78);
  transition: opacity 0.6s, translate 0.6s var(--ease);
}
.tap-hint.gone { opacity: 0; translate: -50% 10px; }
.tap-ring { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; }
.tap-ring::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgb(var(--n)); animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(2.8); opacity: 0; } }
.scroll-cue { position: absolute; left: 50%; top: calc(100svh - 52px); width: 22px; height: 34px; margin-left: -11px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.3); display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(9px); } }
@media (max-width: 520px) {
  .stores { flex-direction: column; align-items: center; }
  .store, .store-lg { width: min(272px, 100%); }
}

@media (min-width: 960px) {
  .hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding: 96px 0 120px; }
  .hero-in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 56px; }
  .hero-copy { text-align: left; align-items: flex-start; min-height: 0; padding-bottom: 0; }
  .logo-2 { text-indent: 0; }
  .hero .stores { justify-content: flex-start; }
  .hero-phone { padding: 0; }
  .hero-phone .phone {
    width: min(310px, 26vw); aspect-ratio: 9 / 16;
    transform: perspective(1400px) rotateY(calc(-12deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))) rotateZ(1.5deg);
    transition: transform 0.4s var(--ease);
  }
  .tap-hint { top: auto; bottom: 34px; }
  .scroll-cue { display: block; top: auto; bottom: 28px; left: auto; right: 40px; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(84px, 11vw, 140px) 0; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.wrap-narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.eyebrow, .section .h2, .section .sub { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: flex; justify-content: center; align-items: center; gap: 12px; width: fit-content;
  font: 700 12px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before, .eyebrow::after { content: ''; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgb(var(--n)), rgb(var(--s))); }
.eyebrow::after { background: linear-gradient(90deg, rgb(var(--s)), rgb(var(--n))); }
.h2 { margin-top: 18px; font-size: clamp(30px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; max-width: 16em; }
.sub { margin-top: 18px; max-width: 38em; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); text-wrap: pretty; }

/* how to play */
.how::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(155, 123, 255, 0.12), transparent 70%);
}
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  position: relative; padding: 14px 14px 26px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  transition: translate 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.step:hover { translate: 0 -5px; border-color: rgba(155, 123, 255, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.step-art { aspect-ratio: 200 / 140; border-radius: 18px; overflow: hidden; margin-bottom: 22px; background: radial-gradient(90% 90% at 50% 60%, #1F1C4C, #0A0A20); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.step-art svg { width: 100%; height: 100%; }
.step-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin: 0 12px 12px; border-radius: 50%;
  background: var(--grad); color: #fff; font: 800 13px/1 var(--display);
}
.step h3 { display: inline; font-size: 21px; vertical-align: 4px; }
.step p { margin: 0 12px; color: var(--muted); font-size: 16px; }
/* the illustrations: lines drawn as the game draws them, a wide soft stroke under a thin bright one */
.ln, .ln-glow, .route, .pull { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ln { stroke-width: 2.4; }
.ln.n { stroke: #FF9DB5; }
.ln.s { stroke: #A6DEFF; }
.ln-glow { stroke-width: 10; stroke-opacity: 0.32; }
.ln-glow.n { stroke: rgb(var(--n)); }
.ln-glow.s { stroke: rgb(var(--s)); }
.ln-glow.surf { animation: surf 0.55s ease-in-out infinite alternate; }
@keyframes surf { to { stroke-opacity: 0.75; stroke-width: 16; } }
.route { stroke: rgba(255, 255, 255, 0.16); stroke-width: 1.3; stroke-dasharray: 2 5; }
.art-surf .route { stroke: none; }
.orb-glow { fill: rgba(var(--n), 0.34); }
.orb-core { fill: rgb(var(--n)); stroke: #fff; stroke-width: 1.6; }
.orb-hi { fill: rgba(255, 255, 255, 0.85); }
.orb.s .orb-glow { fill: rgba(var(--s), 0.34); }
.orb.s .orb-core { fill: rgb(var(--s)); }
.ripple { fill: none; stroke: #fff; stroke-width: 2; }
.spark { fill: #FFC3D2; }
.mult { font: 800 12px var(--display); fill: #FF9DB5; letter-spacing: 0.08em; }
.block { fill: #FF8A3D; stroke: #FFD5B5; stroke-width: 1.5; }
.pull { stroke: rgba(166, 222, 255, 0.6); stroke-width: 1.6; }

/* numbers */
.stats { padding: 0 0 20px; }
.stats-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
@media (min-width: 760px) { .stats-in { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--bg); padding: 30px 14px; text-align: center; }
.stat b {
  display: block; font: 800 clamp(42px, 6.4vw, 70px)/1 var(--display); letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat b i { font-style: normal; }
.stat b.inf { font-family: var(--body); font-weight: 800; font-size: clamp(54px, 8vw, 88px); line-height: 0.81; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* modes */
.mode-grid { display: grid; gap: 20px; margin-top: 56px; }
@media (min-width: 860px) { .mode-grid { grid-template-columns: 1fr 1fr; } .mode { min-height: 340px; } }
.mode {
  position: relative; isolation: isolate; overflow: hidden; padding: 34px 30px 30px; border-radius: 30px;
  background: #0F1130; border: 1px solid var(--line);
}
.mode::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 75%); mask-image: linear-gradient(200deg, #000 10%, transparent 75%);
}
.mode-normal::before { background: repeating-radial-gradient(circle at 105% -5%, rgba(var(--s), 0.32) 0 2px, transparent 3px 34px), radial-gradient(circle at 100% 0%, rgba(var(--s), 0.3), transparent 60%); }
.mode-chaos::before {
  inset: -40%;
  background: repeating-conic-gradient(from 0deg at 70% 30%, rgba(var(--n), 0.22) 0 6deg, transparent 6deg 18deg), radial-gradient(circle at 70% 30%, rgba(var(--n), 0.45), transparent 50%);
  animation: chaos-spin 26s linear infinite;
}
@keyframes chaos-spin { to { transform: rotate(360deg); } }
.mode-tag { font: 800 12px/1 var(--display); letter-spacing: 0.24em; color: var(--muted); }
.mode h3 { position: relative; margin: 18px 0 14px; font-size: clamp(44px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; width: fit-content; }
.mode-normal h3 { background: linear-gradient(90deg, #A6DEFF, #36B7FF 60%, #9B7BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mode-chaos h3 { color: #fff; text-shadow: 0 0 30px rgba(var(--n), 0.6); }
.mode-chaos h3::before, .mode-chaos h3::after { content: attr(data-glitch); position: absolute; inset: 0; pointer-events: none; }
.mode-chaos h3::before { color: rgb(var(--n)); mix-blend-mode: screen; animation: glitch 2.6s steps(1) infinite; }
.mode-chaos h3::after { color: rgb(var(--s)); mix-blend-mode: screen; animation: glitch 2.6s steps(1) infinite reverse; }
@keyframes glitch {
  0%, 86%, 100% { transform: none; clip-path: none; opacity: 0; }
  88% { transform: translate(-4px, 2px); clip-path: inset(10% 0 55% 0); opacity: 1; }
  91% { transform: translate(4px, -2px); clip-path: inset(55% 0 8% 0); opacity: 1; }
  94% { transform: translate(-2px, 0); clip-path: inset(30% 0 35% 0); opacity: 1; }
}
.mode p { color: #D6D9F5; max-width: 30em; }
.mode ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.mode li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15.5px; }
.mode li::before { content: ''; width: 10px; height: 10px; flex: none; border-radius: 50%; }
.mode-normal li::before { background: rgb(var(--s)); box-shadow: 0 0 12px rgb(var(--s)); }
.mode-chaos li::before { background: rgb(var(--n)); box-shadow: 0 0 12px rgb(var(--n)); }

/* themes */
.themes { overflow: hidden; }
.themes::before {
  content: ''; position: absolute; inset: 20% 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(155, 123, 255, 0.1), transparent 70%);
}
.gallery { position: relative; margin-top: 30px; }
.gal-track {
  display: flex; gap: 22px; margin: 0; list-style: none;
  padding: 28px max(var(--gutter), calc((100% - 1180px) / 2)) 40px;
  scroll-padding-inline: max(var(--gutter), calc((100% - 1180px) / 2));
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track.drag { scroll-snap-type: none; cursor: grabbing; }
.gal-track.drag * { pointer-events: none; }
.theme-card { flex: none; width: clamp(196px, 56vw, 246px); scroll-snap-align: start; }
.phone-sm {
  width: 100%; padding: 7px; border-radius: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(var(--n), 0.16), 0 0 80px rgba(var(--s), 0.1);
  transition: translate 0.45s var(--ease), rotate 0.45s var(--ease), box-shadow 0.45s;
}
.phone-sm::before { top: 14px; width: 52px; height: 14px; margin-left: -26px; }
.phone-sm img { border-radius: 25px; -webkit-user-drag: none; user-select: none; }
.theme-card:hover .phone-sm { translate: 0 -10px; rotate: -1.5deg; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 34px 60px rgba(0, 0, 0, 0.55), 0 0 70px rgba(var(--n), 0.38), 0 0 110px rgba(var(--s), 0.26); }
.legendary .phone-sm { overflow: hidden; background: linear-gradient(140deg, #FFF0B8, #D9961C 30%, #FFE08A 50%, #B87A12 75%, #FFE9A3); }
.legendary .phone-sm::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 214, 0.5) 50%, transparent 62%);
  transform: translateX(-110%); animation: glint 4.5s ease-in-out infinite;
}
@keyframes glint { 0%, 55% { transform: translateX(-110%); } 85%, 100% { transform: translateX(110%); } }
.theme-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 18px 4px 0; }
.theme-name { font: 700 16.5px/1.2 var(--display); display: inline-flex; align-items: center; gap: 9px; }
.theme-name::before { content: ''; width: 22px; height: 10px; flex: none; border-radius: 5px; background: linear-gradient(90deg, rgb(var(--n)) 50%, rgb(var(--s)) 50%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
.theme-desc { flex-basis: 100%; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.badge { padding: 5px 9px; border-radius: 999px; font: 700 10px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: var(--muted); }
.badge-gold { background: linear-gradient(135deg, #FFF0B8, #FFC94A 45%, #E89B1E); border-color: transparent; color: #2C1B00; box-shadow: 0 0 18px rgba(255, 201, 74, 0.45); }
.gal-btn {
  position: absolute; top: calc(28px + 40%); z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  display: none; place-items: center; cursor: pointer; font-size: 30px; line-height: 1; padding-bottom: 4px;
  background: rgba(18, 21, 58, 0.78); border: 1px solid var(--line-2); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity 0.25s, background 0.2s, scale 0.2s;
}
.gal-btn:hover { background: rgba(40, 44, 100, 0.9); scale: 1.06; }
.gal-btn[disabled] { opacity: 0; pointer-events: none; }
.gal-prev { left: max(10px, calc((100% - 1260px) / 2)); }
.gal-next { right: max(10px, calc((100% - 1260px) / 2)); }
@media (hover: hover) and (pointer: fine) { .gal-btn { display: grid; } .gal-track { cursor: grab; } }

/* features */
.feat-grid { display: grid; gap: 18px; margin-top: 56px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat {
  position: relative; overflow: hidden; padding: 28px 26px 30px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  transition: border-color 0.3s, translate 0.35s var(--ease);
}
.feat::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(155, 123, 255, 0.16), transparent 45%);
}
.feat:hover { border-color: var(--line-2); translate: 0 -3px; }
.feat:hover::after { opacity: 1; }
.feat-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; background: rgba(var(--c), 0.14); box-shadow: inset 0 0 0 1px rgba(var(--c), 0.35), 0 0 30px rgba(var(--c), 0.15); }
.feat-ic svg { width: 28px; height: 28px; fill: rgb(var(--c)); }
.ic-trophy { --c: 255, 211, 90; }
.ic-target { --c: 255, 61, 110; }
.ic-gift { --c: 155, 123, 255; }
.ic-link { --c: 54, 183, 255; }
.ic-music { --c: 90, 240, 190; }
.ic-plane { --c: 255, 138, 61; }
.feat h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.005em; }
.feat p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* trailer */
.trailer-card {
  position: relative; display: block; width: 100%; max-width: 1000px; margin: 52px auto 0; padding: 0; border: 0;
  border-radius: 28px; overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 120px rgba(155, 123, 255, 0.18);
}
.trailer-card img { width: 100%; height: auto; transition: scale 0.8s var(--ease), filter 0.8s; filter: saturate(1.05); }
.trailer-card:hover img { scale: 1.035; filter: saturate(1.2) brightness(1.05); }
.trailer-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 6, 16, 0.7), transparent 45%); pointer-events: none; }
.trailer-cta { position: absolute; left: clamp(14px, 4%, 40px); bottom: clamp(14px, 6%, 40px); z-index: 1; display: flex; align-items: center; gap: 16px; text-align: left; }
.trailer-play {
  position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 10px 40px rgba(155, 123, 255, 0.55);
  transition: scale 0.3s var(--ease);
}
.trailer-play::before { content: ''; position: absolute; left: 30px; top: 24px; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.trailer-play::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); animation: ping 2s var(--ease) infinite; }
.trailer-label { font: 700 16px/1.25 var(--display); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.trailer-label small { display: block; margin-top: 4px; font: 700 13px/1 var(--body); letter-spacing: 0.08em; color: var(--muted); }
.trailer-card:hover .trailer-play { scale: 1.08; }
@media (max-width: 600px) { .trailer-play { scale: 0.8; margin: -8px; } .trailer-label { font-size: 13px; } .trailer-card { border-radius: 20px; } }

/* questions */
.qa { display: grid; gap: 12px; margin-top: 48px; }
.qa details { border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.025); transition: background 0.3s, border-color 0.3s; }
.qa details[open] { background: rgba(255, 255, 255, 0.05); border-color: rgba(155, 123, 255, 0.4); }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-weight: 800; font-size: 17px; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.3s var(--ease), margin 0.3s;
}
.qa details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa details p { padding: 0 24px 22px; color: var(--muted); }

/* the last call */
.final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(120px, 16vw, 200px) 0; text-align: center; }
.final-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.final::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(var(--bg), rgba(10, 11, 30, 0.35) 30%, rgba(10, 11, 30, 0.35) 70%, var(--bg)), radial-gradient(60% 50% at 50% 50%, rgba(10, 11, 30, 0.5), transparent); }
.final-title {
  margin: 0 auto; max-width: 13em; font-size: clamp(36px, 7.4vw, 92px); font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, #FFB3C6, #fff 35%, #fff 65%, #A6DEFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.final .sub { margin: 22px auto 0; }
.final .stores { justify-content: center; margin-top: 38px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 52px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-in { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; display: grid; gap: 26px; }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } }
.foot-brand p { margin-top: 12px; color: var(--dim); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.foot-rights { grid-column: 1 / -1; color: var(--dim); font-size: 14px; }
.foot-rights a { color: inherit; }

/* the trailer's player */
.lightbox { width: min(1100px, 100vw - 2 * var(--gutter)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox[open] { animation: pop 0.35s var(--ease); }
.lightbox::backdrop { background: rgba(5, 6, 16, 0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox video { width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); }
.lb-close {
  position: absolute; right: 0; top: -54px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.08); font-size: 28px; line-height: 1; padding-bottom: 3px;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.16); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

/* the reveals: only with scripts on, which make them visible */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
  .reveal:not(.in) { opacity: 0; transform: translateY(28px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}

/* ---------- the documents: privacy, terms, support ---------- */
.page::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 100% at 50% 0%, rgba(155, 123, 255, 0.2), transparent 70%), radial-gradient(40% 60% at 15% 0%, rgba(var(--n), 0.12), transparent 70%), radial-gradient(40% 60% at 85% 0%, rgba(var(--s), 0.12), transparent 70%);
}
.page { position: relative; isolation: isolate; }
.doc { width: min(820px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 132px 0 96px; }
.doc .eyebrow { justify-content: flex-start; margin: 0; }
.doc .eyebrow::before { display: none; }
.doc h1 { margin-top: 18px; font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.doc .meta { margin-top: 16px; color: var(--dim); font-size: 15px; }
.doc .intro { margin-top: 26px; font-size: 19px; color: #D6D9F5; }
.doc h2 { margin-top: 52px; font-size: 22px; font-weight: 700; letter-spacing: -0.005em; }
.doc h3 { margin-top: 28px; font-size: 17px; font-weight: 600; }
.doc p, .doc li { color: #CDD1EE; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--violet); }
.doc strong { color: var(--text); }
.doc a[href^="mailto"] { white-space: nowrap; }
.doc .table { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.doc th, .doc td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { font: 700 12px/1.3 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.doc tr:last-child td { border-bottom: 0; }
.doc td { color: #CDD1EE; }
.doc td:first-child { color: var(--text); font-weight: 700; }
.doc .card { margin-top: 26px; padding: 24px 26px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.doc .card h2 { margin-top: 0; }
.doc .mail { display: inline-flex; margin-top: 18px; max-width: 100%; height: auto; min-height: 48px; padding: 12px 22px; white-space: normal; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; font-size: 14px; }
.doc .toc { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc .toc a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.doc .toc a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.4); }
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; }
.lost b { display: block; font: 800 clamp(96px, 26vw, 220px)/0.9 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(155, 123, 255, 0.35)); }
.lost h1 { margin-top: 18px; font-size: clamp(24px, 4vw, 36px); }
.lost p { margin: 14px auto 30px; color: var(--muted); max-width: 30em; }
