/*
 * Лендинг «В поисках истины». Цвета, рамки и кнопки взяты из интерфейса игры
 * (android/assets/menu, android/assets/shop): кнопки и рамки ячеек — это те же картинки,
 * растянутые через border-image, поэтому им нужен image-rendering: pixelated.
 */

@font-face {
  font-family: "Pixeliatore";
  src: url("fonts/pixeliatore.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #15120b;
  --bg-deep: #0e0c07;
  --panel: #2b2515;
  --panel-hi: #3a3119;
  --ink: #f6eed6;
  --muted: #cfc3a2;
  --gold: #e3c24c;
  --gold-mid: #ae963e;
  --olive: #937e34;
  --gold-dark: #5a4a17;
  --yellow: #fec600;
  --diamond: #3ee6ea;
  --sky-top: #0d263e;
  --sky-mid: #235277;
  --sky-low: #79a9cb;
  --pixel: "Pixeliatore", "Courier New", monospace;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}

:root:lang(zh-Hans) {
  --text: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --pixel: "Pixeliatore", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

:root:lang(ja) {
  --text: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  --pixel: "Pixeliatore", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
}

/* японские заголовки и подписи переносим по фразам, а не посреди слова (Chrome; остальные игнорируют) */
:lang(ja) :is(h2, h3, .section-head p, .lead, figcaption, summary, .cell-name) {
  word-break: auto-phrase;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

h1, h2, h3 { font-weight: 400; }

h2 {
  margin: 0 0 12px;
  font-family: var(--pixel);
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: .04em;
  color: #fff3cf;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .55);
}

h3 {
  margin: 0 0 8px;
  font-family: var(--pixel);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: .04em;
  color: var(--gold);
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow { width: min(100% - 32px, 820px); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: #1b1405;
  font-family: var(--pixel);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.btn {
  --bw: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 2px 18px;
  border: var(--bw) solid transparent;
  border-image: url("img/ui/button.png") 6 fill / var(--bw) stretch;
  image-rendering: pixelated;
  background: none;
  color: #fff;
  font: 19px/1.1 var(--pixel);
  letter-spacing: .06em;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12) saturate(1.1); }
.btn:active { transform: translateY(1px); filter: brightness(.95); }

.btn-dark {
  --bw: 10px;
  border-image: url("img/ui/button-dark.png") 5 fill / var(--bw) stretch;
  color: var(--yellow);
}

.btn-sm {
  --bw: 10px;
  min-height: 46px;
  padding: 2px 12px;
  font-size: 16px;
}

.btn-store {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 214px;
  min-height: 70px;
  padding: 4px 20px;
}
.btn-store small { font-size: 13px; letter-spacing: .08em; opacity: .9; }
.btn-store span { font-size: 23px; }

.is-soon { cursor: default; filter: saturate(.55) brightness(.9); }
.is-soon:hover, .is-soon:active { transform: none; filter: saturate(.55) brightness(.9); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 15, 9, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--gold-mid);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .45);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 18px/1 var(--pixel);
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 36px; height: 36px; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 15px/1 var(--pixel);
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--gold); border-color: var(--gold); }

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(0, 0, 0, .4);
  border: 2px solid var(--gold-dark);
}
.lang a {
  padding: 5px 8px;
  color: var(--muted);
  font: 13px/1 var(--pixel);
  letter-spacing: .05em;
  text-decoration: none;
}
.lang a:hover { color: #fff; }
.lang a[aria-current],
html[data-lang="ru"] .lang a[data-lang="ru"],
html[data-lang="en"] .lang a[data-lang="en"],
html[data-lang="zh"] .lang a[data-lang="zh"],
html[data-lang="ja"] .lang a[data-lang="ja"] {
  background: var(--olive);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(36px, 6vw, 72px);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-low) 100%);
}

.sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute;
  top: 36px;
  right: 7%;
  width: 92px;
  filter: drop-shadow(0 0 26px rgba(255, 210, 100, .55));
  animation: sun 7s ease-in-out infinite;
}
.cloud { position: absolute; left: 0; opacity: .9; animation: drift linear infinite; }
.c1 { top: 60px; width: 190px; animation-duration: 95s; animation-delay: -30s; }
.c2 { top: 170px; width: 140px; animation-duration: 120s; animation-delay: -85s; }
.c3 { top: 24px; width: 260px; opacity: .55; animation-duration: 160s; animation-delay: -120s; }

@keyframes drift {
  from { transform: translateX(-320px); }
  to { transform: translateX(calc(100vw + 40px)); }
}
@keyframes sun {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 7px 12px;
  background: rgba(0, 0, 0, .25);
  border: 2px solid rgba(255, 255, 255, .35);
  color: #fff;
  font: 14px/1 var(--pixel);
  letter-spacing: .1em;
}

.hero-title { margin: 22px 0 6px; line-height: 1; }
.hero-title img {
  display: block;
  width: min(100%, 560px);
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .35));
}
.hero-sub {
  display: block;
  margin-top: 16px;
  color: var(--gold);
  font: clamp(22px, 3vw, 30px)/1.1 var(--pixel);
  letter-spacing: .14em;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
}

.lead {
  max-width: 36em;
  margin: 18px 0 0;
  color: #eef4f8;
  font-size: clamp(17px, 1.6vw, 19px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.stores { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 20px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #fff;
  font: 15px/1.2 var(--pixel);
  letter-spacing: .05em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .4);
}
.facts li { display: flex; align-items: center; gap: 8px; }
.facts img { width: auto; height: 20px; }

.hero-art { position: relative; justify-self: center; }

.phone {
  position: relative;
  width: 290px;
  padding: 9px;
  background: #0b0906;
  border-radius: 32px;
  box-shadow: 0 0 0 2px #3a3120, 0 30px 70px rgba(0, 0, 0, .5);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 1200;
  border-radius: 24px;
}

.float {
  position: absolute;
  width: 66px;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35));
  animation: bob 4.5s ease-in-out infinite;
}
.f1 { left: -64px; top: 10%; }
.f2 { right: -58px; top: 26%; animation-delay: -1.2s; }
.f3 { left: -52px; top: 52%; animation-delay: -2.4s; }
.f4 { right: -46px; top: 68%; animation-delay: -3.1s; }
.f5 { left: -30px; bottom: -8px; width: 72px; animation-delay: -1.8s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-12px) rotate(5deg); }
}

.journey {
  position: relative;
  height: clamp(130px, 17vw, 230px);
  background: url("img/panorama.webp") 50% 62% / cover no-repeat;
  animation: pan 45s ease-in-out infinite alternate;
}
.journey::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(transparent, var(--bg));
}
.journey-tag {
  position: absolute;
  z-index: 1;
  top: 26%;
  padding: 5px 10px;
  background: rgba(20, 16, 8, .72);
  border: 2px solid var(--gold-mid);
  color: #fff;
  font: 14px/1 var(--pixel);
  letter-spacing: .06em;
  transform: translateX(-50%);
}
.t1 { left: 16%; }
.t2 { left: 48%; }
.t3 { left: 82%; }

@keyframes pan {
  from { background-position: 0% 62%; }
  to { background-position: 100% 62%; }
}

.section { position: relative; padding: clamp(56px, 7.5vw, 96px) 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 54px);
  text-align: center;
}
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }

.card {
  position: relative;
  padding: 28px 24px 24px;
  background:
    url("img/ui/stud.png") left 7px top 7px / 14px 14px no-repeat,
    url("img/ui/stud.png") right 7px top 7px / 14px 14px no-repeat,
    url("img/ui/stud.png") left 7px bottom 7px / 14px 14px no-repeat,
    url("img/ui/stud.png") right 7px bottom 7px / 14px 14px no-repeat,
    linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 3px var(--gold-dark),
    inset 0 0 0 3px var(--olive),
    inset 0 0 0 6px rgba(0, 0, 0, .22),
    0 16px 32px rgba(0, 0, 0, .35);
}
.card p { margin: 0; color: var(--muted); }

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

.step-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 128px;
  margin: 0 0 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, #1f6a41 0%, #0f4227 58%, #082817 100%);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .35);
}
.art-match img { width: 74px; }
.art-match .lit {
  filter: drop-shadow(0 0 5px #b8ffff) drop-shadow(0 0 12px #36e2ea);
  animation: pulse 1.6s ease-in-out infinite;
}
.art-climb { align-items: flex-end; background: linear-gradient(180deg, #2b628c, #8fbad6); }
.art-mount { position: absolute; bottom: 0; left: 50%; width: 250px; max-width: none; transform: translateX(-50%); image-rendering: pixelated; }
.art-climber { position: relative; width: 44px; margin: 0 0 30px 30px; animation: climb 3.2s ease-in-out infinite; }
.art-timer { gap: 16px; }
.art-timer img { width: 76px; }
.timer {
  color: #fff;
  font: 34px/1 var(--pixel);
  letter-spacing: .06em;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
  animation: tick 1s steps(2) infinite;
}

.step-no {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  background: var(--gold);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
  color: #1b1405;
  font-size: 18px;
  vertical-align: 2px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes climb {
  0%, 100% { transform: translate(-18px, 12px); }
  50% { transform: translate(18px, -14px); }
}
@keyframes tick {
  50% { color: var(--yellow); }
}

.section-play {
  background:
    radial-gradient(ellipse 60% 70% at 72% 50%, rgba(30, 106, 64, .32), transparent 70%),
    var(--bg);
}

.play-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.play-lead { margin: 0 0 12px; color: var(--muted); font-size: 18px; }
.play-keys { margin: 0; color: #9c9175; font-size: 14px; }

.hud { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.counter {
  min-width: 118px;
  padding: 4px 12px 6px;
  border: 10px solid transparent;
  border-image: url("img/ui/counter.png") 6 fill / 10px stretch;
  image-rendering: pixelated;
  text-align: center;
}
.counter dt { color: #fff; font: 12px/1.3 var(--pixel); letter-spacing: .08em; opacity: .85; }
.counter dd {
  margin: 0;
  color: #fff;
  font: 24px/1.2 var(--pixel);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
}

.demo { width: min(100%, 480px); justify-self: center; }

.climb {
  position: relative;
  height: 96px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #79a9cb;
  border: 3px solid var(--gold-mid);
  box-shadow: 0 0 0 3px var(--gold-dark);
}
.climb-pano {
  position: absolute;
  inset: 0;
  background: url("img/panorama.webp") 0% 64% / auto 290% no-repeat;
  transition: background-position 1.4s ease;
}
.climb-hero {
  position: absolute;
  left: 20%;
  bottom: 4px;
  width: auto;
  height: 76px;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .4));
  animation: sway 2.6s ease-in-out infinite;
}
.climb-goal {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font: 14px/1 var(--pixel);
  letter-spacing: .04em;
}
@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.board-frame {
  position: relative;
  padding: 10px;
  background: linear-gradient(180deg, #30291a, #211c0f);
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 4px var(--gold-dark),
    inset 0 0 0 3px var(--olive),
    0 26px 50px rgba(0, 0, 0, .5);
}

.board {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #1f6a41 0%, #0f4227 55%, #082817 100%);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.board:focus { outline: none; }
.board:focus-visible { box-shadow: inset 0 0 0 3px #fff; }

.tile {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% / 6);
  height: calc(100% / 6);
  transform: translate(calc(var(--c) * 100%), calc(var(--r) * 100%));
  transition: transform var(--t, 170ms) var(--ease, ease);
}
.tile img {
  position: relative;
  z-index: 1;
  display: block;
  width: 84%;
  height: 84%;
  margin: 8%;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform .16s ease, opacity .2s ease, filter .16s ease;
}
.tile.sel img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 5px #b8ffff) drop-shadow(0 0 12px #36e2ea);
}
.tile.sel::before {
  content: "";
  position: absolute;
  inset: -16%;
  background: url("img/ui/glow.webp") center / contain no-repeat;
  opacity: .8;
  animation: spin 6s linear infinite;
}
.tile.cursor::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 5%;
  border: 3px dashed rgba(255, 255, 255, .85);
}
.tile.hint img { animation: wiggle .5s ease-in-out 4; }
.tile.pop img { transform: scale(.2); opacity: 0; }

.boom {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: calc(100% / 6);
  height: calc(100% / 6);
  transform: translate(calc(var(--c) * 100%), calc(var(--r) * 100%));
  background: url("img/ui/explode.webp") 0 0 / 600% 100% no-repeat;
  pointer-events: none;
  animation: boom .36s steps(6) forwards;
}
@keyframes boom { to { background-position: 120% 0; } }

.gain {
  position: absolute;
  z-index: 4;
  color: #fff;
  font: 22px/1 var(--pixel);
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: gain .9s ease-out forwards;
}
@keyframes gain {
  0% { opacity: 0; transform: translate(-50%, -30%); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -160%); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-9deg) scale(1.06); }
  75% { transform: rotate(9deg) scale(1.06); }
}

.board-msg {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 82%;
  margin: 0;
  padding: 16px 18px;
  background: rgba(40, 33, 14, .94);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dark);
  color: #fff;
  font: 18px/1.35 var(--pixel);
  letter-spacing: .03em;
  text-align: center;
  transform: translate(-50%, -50%);
}

.summit {
  position: absolute;
  inset: 10px;
  z-index: 7;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 22px;
  background: rgba(24, 20, 10, .92);
  text-align: center;
  animation: appear .35s ease both;
}
.board-msg[hidden], .summit[hidden] { display: none; }
.summit p { margin: 0; }
.summit-title {
  color: var(--gold);
  font: clamp(34px, 6vw, 46px)/1 var(--pixel);
  letter-spacing: .06em;
  text-shadow: 3px 3px 0 #000;
}
.summit-text { max-width: 30em; color: var(--ink); }
.summit-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.confetti {
  position: absolute;
  top: -30px;
  z-index: 8;
  width: 22px;
  pointer-events: none;
  animation: drop 1.8s ease-in forwards;
}
@keyframes drop {
  to { transform: translateY(560px) rotate(540deg); opacity: 0; }
}
@keyframes appear {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}

html.no-js .section-play { display: none; }

.section-shots { padding-bottom: clamp(48px, 7vw, 80px); }

.shots {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 10px max(16px, calc((100vw - var(--wrap)) / 2)) 26px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--olive) transparent;
}
.shots li { flex: 0 0 auto; scroll-snap-align: center; }
.shots figure { margin: 0; }
.phone-sm { width: 234px; padding: 8px; border-radius: 28px; }
.phone-sm img { border-radius: 21px; }
.shots figcaption {
  max-width: 234px;
  margin-top: 16px;
  color: var(--muted);
  font: 15px/1.35 var(--pixel);
  letter-spacing: .03em;
  text-align: center;
}

@media (min-width: 1140px) {
  .shots { justify-content: center; overflow: visible; }
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-icon {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 64px;
  margin-bottom: 16px;
}
.feature-icon img { width: auto; height: 100%; }
.icon-hearts img { height: 34px; }
.icon-cloud img { height: 64px; }
.icon-diamonds img { height: 60px; image-rendering: pixelated; }
.icon-mount img { height: 60px; image-rendering: pixelated; }
.icon-langs span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--olive);
  box-shadow: inset 0 0 0 2px var(--gold), 3px 3px 0 rgba(0, 0, 0, .45);
  color: #fff;
  font: 22px/1 var(--pixel);
}

.section-heroes { background: linear-gradient(180deg, var(--bg), #1a1710 50%, var(--bg)); }

.sub-head { margin: 0 0 20px; text-align: center; }

.skins, .backs {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.skins {
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  gap: 24px;
  margin-bottom: 56px;
}
.backs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.cell {
  padding: 12px 12px 14px;
  border: 6px solid transparent;
  border-image: url("img/ui/cell.png") 3 fill / 6px stretch;
  image-rendering: pixelated;
  text-align: center;
  transition: transform .15s ease;
}
.cell:hover { transform: translateY(-4px); }
.cell > img { display: block; width: 100%; image-rendering: auto; }
.cell-name {
  margin: 10px 0 4px;
  color: #fff;
  font: 16px/1.25 var(--pixel);
  letter-spacing: .03em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
}
.price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--diamond);
  font: 15px/1 var(--pixel);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .5);
}
.price img { width: auto; height: 16px; image-rendering: auto; }
.price.free { color: #b8f28a; }

.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--panel);
  border: 3px solid var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .35);
}
.faq summary {
  position: relative;
  padding: 18px 56px 18px 20px;
  color: #fff3cf;
  font: 18px/1.35 var(--pixel);
  letter-spacing: .03em;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--gold);
  font-size: 28px;
  transform: translateY(-50%);
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--gold); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.faq b { color: var(--ink); font-weight: 600; }
.faq-contact { margin: 26px 0 0; color: var(--muted); text-align: center; }

.final {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 100px) 0 clamp(210px, 28vw, 300px);
  background: linear-gradient(180deg, var(--bg) 0%, #172636 45%, #2a5475 100%);
  text-align: center;
}
.final-in { position: relative; z-index: 1; }
.final p { margin: 0; color: #e6eef4; font-size: 19px; }
.final .stores { justify-content: center; }
.final-peak {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: min(84vw, 560px);
  max-width: none;
  transform: translateX(-50%);
  image-rendering: pixelated;
}
.final-sun {
  position: absolute;
  bottom: clamp(130px, 17vw, 210px);
  left: calc(50% + min(26vw, 230px));
  width: 72px;
  filter: drop-shadow(0 0 22px rgba(255, 210, 100, .6));
  animation: sun 7s ease-in-out infinite;
}

.footer {
  padding: 30px 0 38px;
  background: var(--bg-deep);
  border-top: 3px solid var(--gold-mid);
  color: var(--muted);
  font-size: 14px;
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--pixel); letter-spacing: .04em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink); }
.footer-note { flex-basis: 100%; margin: 4px 0 0; font-size: 12px; opacity: .7; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

@media (max-width: 900px) {
  .hero-grid, .play-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-title img { margin-inline: auto; }
  .stores, .facts { justify-content: center; }
  .hero-art { margin-top: 10px; }
  .phone { width: 250px; }
  .play-copy { text-align: center; }
  .hud { justify-content: center; }
  .steps, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .backs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-tag { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar-in { gap: 12px; min-height: 58px; }
  .brand span { display: none; }
  .topbar-cta { display: none; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .skins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .skins .cell-name { font-size: 13px; }
  .backs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .btn-store { min-width: 0; flex: 1 1 200px; }
  .float { width: 48px; }
  .f1 { left: -36px; }
  .f2 { right: -34px; }
  .f3 { left: -30px; }
  .f4 { right: -28px; }
  .f5 { display: none; }
  .phone-sm { width: 210px; }
  .shots figcaption { max-width: 210px; }
  .counter { min-width: 96px; }
  .sun { top: 8px; right: 8px; width: 48px; }
  .c1, .c2 { opacity: .35; }
  .c3 { display: none; }
}

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