:root {
  color-scheme: dark;
  --ink: #f5f8ff;
  --muted: #a7b3cc;
  --night: #0b1220;
  --night-soft: #141c2e;
  --surface: rgba(20, 28, 46, 0.78);
  --line: rgba(120, 150, 220, 0.2);
  --blue: #4f8cff;
  --pink: #ff4d6d;
  --gold: #ffc52f;
  --max: 1180px;
  --radius: 26px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(79, 140, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 64%, rgba(255, 77, 109, 0.1), transparent 30rem),
    var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 10px 14px; color: var(--night); background: var(--blue);
  border-radius: 8px; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; }
.brand img { width: 48px; height: 48px; border-radius: 12px; }

.site-header {
  position: absolute; z-index: 20; top: 0; left: 50%;
  display: flex; align-items: center; justify-content: space-between;
  width: min(calc(100% - 48px), var(--max)); min-height: 96px;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.03em; }
.site-nav a { color: rgba(245, 248, 255, 0.82); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.site-nav .nav-cta {
  padding: 9px 18px; color: #fff; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: rgba(245, 248, 255, 0.72);
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.lang-opt:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-opt.active {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(79, 140, 255, 0.4);
  cursor: default;
}

.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.hero {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.8fr);
  min-height: 820px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; z-index: 6; right: 0; bottom: 0; left: 0; height: 160px;
  background: linear-gradient(transparent, var(--night)); pointer-events: none;
}
.hero-copy {
  position: relative; z-index: 10; align-self: center;
  width: min(100%, 680px);
  margin-left: max(24px, calc((100vw - var(--max)) / 2));
  padding: 140px 40px 110px 0;
}
.hero h1 {
  margin: 0 0 22px; font-size: clamp(3.4rem, 8vw, 6.6rem);
  line-height: 0.95; letter-spacing: -0.06em;
  background: linear-gradient(135deg, #fff 30%, #b9d0ff 60%, #ff9db0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin: 0; max-width: 560px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); }

.status-row { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 0.9rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 5px rgba(61, 220, 132, 0.2); }

.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.store-badge { display: inline-flex; align-items: center; height: 56px; border-radius: 8px; transition: transform 160ms ease, opacity 160ms ease; }
.store-badge img { display: block; width: auto; height: 56px; max-width: 100%; }
.store-badge:hover, .store-badge:focus-visible { opacity: 0.92; transform: translateY(-2px); }
.store-badge:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.store-badges-large { margin-top: 28px; }
.store-badges-large .store-badge, .store-badges-large .store-badge img { height: 62px; }

.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 0.88rem; }
.hero-note a { color: #dbe6ff; text-underline-offset: 3px; }

.hero-art { position: relative; min-height: 820px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow-a { width: 420px; height: 420px; top: 18%; left: 8%; background: rgba(79, 140, 255, 0.35); }
.glow-b { width: 360px; height: 360px; bottom: 14%; right: 4%; background: rgba(255, 77, 109, 0.28); }

.card-fan { position: absolute; z-index: 3; top: 50%; left: 50%; width: 260px; height: 364px; transform: translate(-50%, -48%); }
.fan-card {
  position: absolute; inset: 0; width: 260px; height: 364px;
  border-radius: 14px; background: #fff;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5); transform-origin: 50% 120%;
}
.fan-1 { transform: rotate(-24deg) translateX(-60px); }
.fan-2 { transform: rotate(-8deg) translateX(-20px); }
.fan-3 { transform: rotate(8deg) translateX(20px); }
.fan-4 { transform: rotate(24deg) translateX(60px); }

.section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

.intro { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 8vw, 110px); align-items: end; padding: 100px 0 72px; }
h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.055em; }
.section-lead, .release p, .web p { margin: 0; color: var(--muted); font-size: clamp(1.03rem, 1.7vw, 1.2rem); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 26px 0 112px; }
.feature-card {
  position: relative; padding: 30px; overflow: hidden;
  background: linear-gradient(145deg, rgba(24, 36, 64, 0.9), rgba(13, 19, 34, 0.96));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.feature-card::after {
  content: ""; position: absolute; right: -70px; bottom: -90px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.16), transparent 68%);
}
.card-number { margin: 0 0 10px; color: var(--pink); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; }
.feature-card h2 { margin-bottom: 14px; font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.1; letter-spacing: -0.035em; }
.feature-card p:last-child { margin: 0; color: var(--muted); }

.release {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px);
  padding: 90px clamp(24px, 5vw, 64px); margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(255, 77, 109, 0.12));
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); align-items: center;
}
.release h2 { max-width: 570px; font-size: clamp(2.4rem, 5vw, 4.2rem); }

.faq { padding: 80px 0 40px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 8vw, 110px); }
.faq-list details { padding: 20px 0; border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; }
.faq-list p { margin: 12px 0 0; color: var(--muted); }
.faq-list a { color: var(--blue); text-underline-offset: 3px; }

.web {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 60px; margin-bottom: 80px; padding: 28px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
}
.web h2 { margin-bottom: 8px; font-size: 1.4rem; letter-spacing: -0.03em; }
.web p { font-size: 0.95rem; max-width: 640px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 800; text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-secondary { color: #fff; background: rgba(11, 18, 32, 0.6); border: 1px solid rgba(255, 255, 255, 0.28); }

.site-footer {
  display: grid; grid-template-columns: 1fr auto; gap: 32px;
  width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 52px 0 36px;
  color: var(--muted); border-top: 1px solid var(--line);
}
.site-footer .brand { color: var(--ink); font-size: 1.15rem; margin-bottom: 10px; }
.site-footer .brand img { width: 40px; height: 40px; }
.site-footer p { margin: 0; font-size: 0.88rem; }
.site-footer a { color: #dce6fa; text-underline-offset: 3px; }
.site-footer .brand { text-decoration: none; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; align-self: end; font-size: 0.86rem; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(120, 150, 220, 0.12); text-align: center; }

@media (max-width: 900px) {
  .site-header { width: min(calc(100% - 32px), var(--max)); }
  .site-nav a:not(.nav-cta):not(.lang-opt) { display: none; }
  .site-nav .nav-cta { display: none; }
  .lang-toggle { display: inline-flex; }
  .hero { display: block; min-height: auto; }
  .hero-copy { width: auto; margin: 0; padding: 126px 24px 24px; }
  .hero-art { min-height: 460px; }
  .card-fan { transform: translate(-50%, -50%) scale(0.8); }
  .intro, .release, .faq { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .web { flex-direction: column; align-items: flex-start; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .section, .site-footer { width: min(calc(100% - 32px), var(--max)); }
  .store-badge, .store-badge img { height: 50px; }
  .store-badges-large .store-badge, .store-badges-large .store-badge img { height: 54px; }
  .card-fan { transform: translate(-50%, -50%) scale(0.62); }
  .hero-art { min-height: 380px; }
}

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

/* Hero screenshots (from Google Play) */
.shot { position: absolute; z-index: 3; height: auto; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.shot-main { top: 17%; right: -12%; width: 108%; max-width: none; transform: rotate(-3deg); }
.shot-second { bottom: 14%; left: -6%; width: 78%; transform: rotate(3deg); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 0 0 80px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 0.92rem; text-align: center; }

/* Rules / legal-style pages */
.legal-body .site-header { position: relative; }
.legal-main { width: min(calc(100% - 48px), 840px); min-height: 65vh; margin: 0 auto; padding: 80px 0 100px; }
.legal-main h1 { margin: 0 0 20px; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 0.95; letter-spacing: -0.06em; }
.legal-intro { margin: 0 0 50px; color: #d4def2; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.legal-section { padding: 32px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 14px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.035em; }
.legal-section h3 { margin: 22px 0 6px; font-size: 1.08rem; }
.legal-section p, .legal-section li { color: var(--muted); }
.legal-section p { margin: 0 0 8px; }
.legal-section ul, .legal-section ol { padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }

@media (max-width: 900px) {
  .shot-main { position: relative; top: auto; right: auto; width: 92%; margin: 40px auto 0; display: block; }
  .shot-second { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; padding-bottom: 60px; }
}
