/* Сайт «Zoomerki»: лендинг, privacy, support. Цвета — как в игре. */
:root {
  --bg: #f6f2ff;
  --bg2: #ffffff;
  --fg: #1d1630;
  --muted: #5d5575;
  --pink: #d6338f;
  --green: #138a4f;
  --card: #ffffff;
  --line: #e3dbf3;
  --shadow: 0 10px 30px rgba(60, 30, 120, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #130b26;
    --bg2: #1a1033;
    --fg: #f3eeff;
    --muted: #b6abd3;
    --pink: #ff6fc0;
    --green: #3ddc84;
    --card: #1e1538;
    --line: #2f2552;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}
a { color: var(--pink); }
img { max-width: 100%; }

/* языки: показываем только блоки текущего */
html[data-lang='en'] [data-l]:not([data-l='en']),
html[data-lang='ru'] [data-l]:not([data-l='ru']),
html[data-lang='ko'] [data-l]:not([data-l='ko']) { display: none !important; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* верхняя полоса */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--fg); text-decoration: none; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; image-rendering: pixelated; }
.top nav { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langs button {
  border: 0; background: transparent; color: var(--muted); font: 600 13px/1 inherit; padding: 7px 10px; cursor: pointer;
}
.langs button[aria-pressed='true'] { background: var(--pink); color: #fff; }
@media (max-width: 560px) { .top nav .hide-sm { display: none; } }

/* первый экран */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #4fa3e0 0%, #9fd3f0 58%, #f3d9a6 100%);
  color: #14102a;
}
.hero::after {
  /* полоска «земли» как в игре */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background: repeating-linear-gradient(90deg, #e8d29b 0 10px, #d7bd80 10px 14px), #8b5a2b;
  border-top: 6px solid #5fb85a;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; padding-top: 48px; padding-bottom: 70px; }
.hero h1 {
  margin: 0; font-size: clamp(48px, 9vw, 92px); line-height: 0.95; letter-spacing: -1px;
  color: #ff5fb8; -webkit-text-stroke: 3px #1e8f55; paint-order: stroke fill;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
}
.hero .tag { font-size: clamp(19px, 2.6vw, 24px); font-weight: 700; margin: 14px 0 6px; }
.hero .sub { font-size: 17px; max-width: 30em; color: #2a2346; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 14px;
  font-weight: 800; font-size: 17px; text-decoration: none; border: 3px solid #14102a;
  box-shadow: 0 5px 0 #14102a; transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #14102a; }
.btn.play { background: #3ddc84; color: #14102a; }
.btn.store { background: #14102a; color: #fff; }
.btn.store small { display: block; font-size: 11px; font-weight: 600; opacity: 0.75; line-height: 1; }
.btn.store span { line-height: 1.1; }
.phone {
  justify-self: center; width: min(300px, 70vw); aspect-ratio: 1206 / 2622; border-radius: 40px; overflow: hidden;
  border: 10px solid #14102a; box-shadow: 0 30px 60px rgba(20, 10, 60, 0.35); background: #14102a;
  transform: rotate(3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero .sub { margin: 0 auto; }
  .cta { justify-content: center; }
  .phone { width: min(240px, 64vw); transform: none; }
}

/* разделы */
section.block { padding: 64px 0 8px; }
section.block h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 8px; }
section.block .lead { color: var(--muted); margin: 0 0 28px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.feature .ico { font-size: 30px; line-height: 1; }
.feature h3 { margin: 10px 0 4px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .vs { grid-template-columns: 1fr; } }
.vs > div { border-radius: 18px; padding: 20px 22px; border: 2px solid; }
.vs .vibe { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--card)); }
.vs .cringe { border-color: #e0455a; background: color-mix(in srgb, #e0455a 8%, var(--card)); }
.vs h3 { margin: 0 0 8px; font-size: 21px; }
.vs ul { margin: 0; padding-left: 20px; }
.vs li { margin: 4px 0; }

.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; }
.shots img {
  flex: 0 0 auto; width: 210px; aspect-ratio: 1206 / 2622; border-radius: 22px; scroll-snap-align: start;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card);
}

.levels { display: flex; flex-wrap: wrap; gap: 8px; }
.levels span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }

.privacy-note { margin-top: 64px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; gap: 16px; align-items: center; }
.privacy-note .ico { font-size: 34px; }
.privacy-note p { margin: 0; }

footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer .sp { margin-left: auto; }

/* текстовые страницы: privacy, support */
.doc { max-width: 760px; margin: 0 auto; padding: 36px 16px 20px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.15; margin: 0 0 6px; }
.doc .muted { color: var(--muted); font-size: 15px; }
.doc .card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 24px 18px; margin-top: 22px; }
.doc h2 { font-size: 20px; margin: 24px 0 6px; }
.doc .tldr { border-left: 4px solid var(--green); padding-left: 14px; font-weight: 600; }

/* живой первый экран: падающие предметы и бегущие герои (site/fun.js) */
.hero::after { z-index: 0; }
.rain { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; pointer-events: none; }
.hero .wrap a, .hero .phone { pointer-events: auto; }
.drop, .runner { position: absolute; left: 0; top: 0; image-rendering: pixelated; will-change: transform; user-select: none; -webkit-user-drag: none; }
.drop { pointer-events: auto; cursor: pointer; transition: opacity 0.25s, scale 0.25s; }
.drop.vibe { filter: drop-shadow(0 0 6px rgba(255, 240, 160, 0.9)); }
.drop.cringe { filter: drop-shadow(0 0 6px rgba(255, 50, 80, 0.75)); }
.drop.pop { opacity: 0; scale: 1.8; }
.runner { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.18)); }
.plus {
  position: absolute; z-index: 3; font: 900 20px/1 system-ui, sans-serif; color: #3ddc84;
  -webkit-text-stroke: 1px #14102a; paint-order: stroke fill; text-shadow: 0 2px 0 #14102a;
  transform: translate(-50%, -50%); animation: plus 0.9s ease-out forwards; pointer-events: none;
}
.plus.bad { color: #ff4d6d; }
@keyframes plus { to { transform: translate(-50%, -160%); opacity: 0; } }

.music {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 10;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px;
  border: 3px solid #14102a; background: #ffe066; color: #14102a; font: 800 15px/1 inherit; cursor: pointer;
  box-shadow: 0 4px 0 #14102a;
}
.music:active { transform: translateY(3px); box-shadow: 0 1px 0 #14102a; }
.music .on { display: none; }
.music[aria-pressed='true'] { background: #3ddc84; }
.music[aria-pressed='true'] .on { display: inline; }
.music[aria-pressed='true'] .off { display: none; }
