:root {
  --navy: #0f2a3d;
  --navy-2: #163a52;
  --mint: #8ce5cb;
  --mint-2: #5fcfae;
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #17283a;
  --muted: #5b6d80;
  --sun: #ffc93d;
  --coral: #ff7a6b;
  --street: #4caf50;
  --ocean: #2b7fa6;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(15, 42, 61, 0.35);
  --head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.65 var(--body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ocean); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 600; }
h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 42, 61, 0.92);
  backdrop-filter: blur(10px);
  color: #eafff8;
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--head); font-size: 24px; font-weight: 600; }
.brand img { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-2); padding: 3px; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: #cfeee5; text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: #fff; }
.lang-select {
  font: 700 14px var(--body);
  background: var(--navy-2); color: #eafff8;
  border: 1px solid #2f5873; border-radius: 999px; padding: 6px 10px; cursor: pointer;
}
@media (max-width: 720px) {
  .nav a.hide-sm { display: none; }
  .brand span { font-size: 20px; }
}

/* ── hero ── */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #1f5674 0%, transparent 60%), var(--navy);
  color: #f1fffb;
  overflow: hidden;
  position: relative;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero p.lead { font-size: 20px; color: #bfe3d8; max-width: 34ch; }
.hero .eyebrow { display: inline-block; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; color: var(--mint); margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-phones { display: flex; justify-content: center; gap: 18px; position: relative; }
.hero-phones .phone:nth-child(2) { transform: translateY(36px) rotate(3deg); }
.hero-phones .phone:nth-child(1) { transform: rotate(-3deg); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 40px 0 56px; }
  .hero-phones .phone:nth-child(2) { display: none; }
  .hero-phones .phone:nth-child(1) { transform: none; }
}

/* ── phone frame ── */
.phone {
  width: min(280px, 72vw);
  border-radius: 38px;
  padding: 10px;
  background: #0a1b28;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #24435a;
  flex: none;
}
.phone > * { border-radius: 30px; overflow: hidden; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; background: #dfe9ef; }
.phone.small { width: min(220px, 60vw); border-radius: 32px; padding: 8px; }
.phone.small > * { border-radius: 25px; }
.slideshow { position: relative; }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.slideshow img.on { opacity: 1; }

/* ── buttons ── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 800 16px var(--body); text-decoration: none;
  background: var(--mint); color: var(--navy);
  border: 0; cursor: pointer;
  box-shadow: 0 6px 0 #4bb795;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #4bb795; }
.btn.ghost { background: transparent; color: #e9fff8; box-shadow: inset 0 0 0 2px #3e6c86; }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--mint); }
.btn.dark { background: var(--navy); color: #fff; box-shadow: 0 6px 0 #061520; }
.btn.soon { background: #e6edf2; color: #5b6d80; box-shadow: none; cursor: default; }
.btn.soon:hover { transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ── sections ── */
section.block { padding: 80px 0; }
section.block.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; }
.white { background: var(--paper); }

/* game cards */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.game-card {
  background: var(--paper); border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr;
  border: 1px solid #efe4cf;
}
.game-card .media { display: flex; justify-content: center; padding: 30px 20px 0; min-height: 300px; align-items: flex-end; }
.game-card.street .media { background: linear-gradient(180deg, #bfe8a8, #88cf71); }
.game-card.ocean .media { background: linear-gradient(180deg, #2c6e8f, #12364d); }
.game-card .media .phone { margin-bottom: -60px; }
.game-card .body { padding: 80px 28px 28px; position: relative; background: var(--paper); }
.game-card .icon { width: 72px; height: 72px; border-radius: 18px; position: absolute; top: -36px; left: 28px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45); background: #fff; }
.game-card .tag { font-weight: 800; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; padding: 0; list-style: none; }
.chips li { background: #f1f6f8; border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; color: #355068; }

.coming {
  border: 3px dashed #d9c9a8; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; justify-content: center;
  background: repeating-linear-gradient(-45deg, #fffaf0, #fffaf0 14px, #fff4e0 14px, #fff4e0 28px);
}

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--paper); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px -22px rgba(15, 42, 61, 0.5); border: 1px solid #eee3cf; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 12px; background: #eaf8f2; }
.feature p { color: var(--muted); margin: 0; }

/* values strip */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.value { display: flex; gap: 14px; align-items: flex-start; }
.value .dot { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--mint); font-size: 22px; }
.value p { color: var(--muted); margin: 0; font-size: 16px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 0; }
.stat { background: rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 16px; text-align: center; }
.stat b { display: block; font-family: var(--head); font-size: 34px; color: var(--mint); line-height: 1.1; }
.stat span { font-size: 14px; color: #bfe3d8; font-weight: 700; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; padding: 0; list-style: none; }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; border: 1px solid #eee3cf; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--navy); font: 700 18px var(--head); display: grid; place-items: center; }

/* screenshots */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.shots img { width: 220px; flex: none; border-radius: 22px; scroll-snap-align: start; box-shadow: var(--shadow); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* note */
.note { background: #fff3d6; border-radius: 18px; padding: 18px 22px; color: #6b5420; font-size: 16px; }

/* legal pages */
.legal { overflow-wrap: anywhere; max-width: 780px; margin: 0 auto; padding: 48px 16px 80px; }
.legal section { background: var(--paper); border: 1px solid #eadfca; border-radius: 18px; padding: 8px 24px 16px; margin-bottom: 24px; }
.legal h1 { font-size: 30px; margin-top: 16px; }
.legal h2 { font-size: 20px; margin-top: 24px; }
.legal .muted { color: var(--muted); font-size: 14px; }
.legal li { margin: 6px 0; }
.legal .lang-links { display: flex; gap: 14px; margin: 8px 0 20px; font-weight: 800; }

/* footer */
.site-footer { background: var(--navy); color: #a9c6cf; padding: 44px 0 36px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font: 600 17px var(--head); margin: 0 0 10px; }
.site-footer a { color: #cfeee5; text-decoration: none; display: block; margin: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid #24465c; padding-top: 18px; font-size: 13px; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* rtl */
[dir='rtl'] .game-card .icon { left: auto; right: 28px; }
[dir='rtl'] .steps li { padding: 22px 70px 22px 22px; }
[dir='rtl'] .steps li::before { left: auto; right: 20px; }
[dir='rtl'] .nav { margin-left: 0; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slideshow img { transition: none; }
}
