@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/lilita.woff2) format('woff2');
}

:root {
  --navy: #12305e;
  --ink: #0c2142;
  --deep: #081628;
  --gold: #ffd23f;
  --gold-hot: #ffc107;
  --orange: #ff8a1a;
  --sky: #5eb6f2;
  --sky2: #9ad6ff;
  --grass: #7cc356;
  --card: #162848;
  --card-line: rgba(255, 210, 63, 0.28);
  --text: #f4f7ff;
  --muted: #c5d3ee;
  --shadow: 0 18px 40px rgba(8, 22, 40, 0.35);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.pending-i18n body { visibility: hidden; }
body {
  font-family: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  color: var(--text);
  background: var(--deep);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
button, summary { font: inherit; }

/* ---------- animated backdrop ---------- */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #fff6c8 0%, transparent 50%),
    linear-gradient(180deg, #6ec8ff 0%, #5eb6f2 42%, #8ed0a0 78%, #7cc356 100%);
}
.cloud {
  position: absolute;
  background: #fff;
  border-radius: 50px;
  opacity: 0.78;
  filter: drop-shadow(18px 8px 0 rgba(255,255,255,0.55));
  animation: drift linear infinite;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.cloud::before { width: 52%; height: 120%; top: -50%; left: 14%; }
.cloud::after { width: 40%; height: 90%; top: -30%; right: 10%; }
.c1 { width: 160px; height: 46px; top: 12%; left: -180px; animation-duration: 70s; }
.c2 { width: 110px; height: 34px; top: 22%; left: -140px; animation-duration: 95s; animation-delay: -30s; opacity: 0.62; }
.c3 { width: 200px; height: 54px; top: 8%; left: -220px; animation-duration: 80s; animation-delay: -50s; }
.c4 { width: 90px; height: 28px; top: 30%; left: -120px; animation-duration: 110s; animation-delay: -20s; opacity: 0.55; }
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 400px)); }
}
.hills {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: min(32vh, 280px);
  display: block;
}
#fx { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .obomb, .hero-art img, .hero-card img { animation: none !important; }
  #fx { display: none; }
}

/* ---------- typography / logo ---------- */
.word, .blast, h1, h2, h3, .btn, .brand, .eyebrow, .power {
  font-family: 'Lilita One', Impact, sans-serif;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.word, .blast {
  color: var(--gold);
  -webkit-text-stroke: 4px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #0a1c38;
}
.blast { color: #ff9a2a; }
.obomb {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.18em;
  margin: 0 0.02em;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-5px) rotate(8deg); }
}

/* ---------- header ---------- */
.top, main, .foot { position: relative; z-index: 1; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(8,22,40,0.88), rgba(8,22,40,0.62));
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 210, 63, 0.25);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}
.brand .word, .brand .blast { -webkit-text-stroke-width: 3px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.92;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold); }
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang { flex-shrink: 0; }
.lang button { min-width: 34px; }
.lang {
  display: inline-flex;
  border: 2px solid rgba(255,210,63,0.45);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(12, 33, 66, 0.7);
}
.lang button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 4px 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}
.lang button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(18, 48, 94, 0.8);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: 'Lilita One', sans-serif;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px 22px;
  font-size: 22px;
  line-height: 1.1;
  border: 3px solid #1a3058;
  box-shadow: 0 5px 0 #1a3058, 0 10px 18px rgba(0,0,0,0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-align: center;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #1a3058; }
.btn-play { background: linear-gradient(#ffe56a, #ffc107); color: #1a3058; }
.btn-apk { background: linear-gradient(#7be07a, #3aa34a); color: #0d2a12; }
.btn-itch { background: linear-gradient(#6aa8ff, #2f6adf); color: #fff; -webkit-text-stroke: 0; text-shadow: 0 1px 0 #1a3058; }
.btn-sm { font-size: 16px; padding: 8px 14px; border-width: 2px; box-shadow: 0 3px 0 #1a3058; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  min-height: calc(100svh - 72px);
}
.eyebrow {
  color: var(--ink);
  background: rgba(255,210,63,0.92);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 15px;
  margin-bottom: 10px;
  -webkit-text-stroke: 0;
}
.hero h1 {
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.92;
  display: flex;
  flex-direction: column;
}
.hero h1 .word, .hero h1 .blast {
  -webkit-text-stroke-width: 7px;
  text-shadow: 0 6px 0 #0a1c38;
}
.lead {
  margin: 18px 0 22px;
  font-size: 19px;
  color: var(--ink);
  background: rgba(255,255,255,0.78);
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid rgba(18,48,94,0.15);
  max-width: 36rem;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 14px; color: var(--ink); font-size: 13px; font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,0.5); }
.hero-art {
  margin: 0;
  transform: rotate(2.4deg);
  filter: drop-shadow(0 22px 30px rgba(8,22,40,0.4));
}
.hero-art img {
  border-radius: 28px;
  border: 6px solid #fff;
  outline: 4px solid var(--navy);
  animation: floaty 5s ease-in-out infinite;
  width: 100%;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- sections ---------- */
.section, .hero { scroll-margin-top: 84px; }
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 20px 56px;
}
.section h2 {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--gold);
  -webkit-text-stroke: 3px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #0a1c38;
  margin-bottom: 8px;
}
.section-lead {
  color: var(--ink);
  background: rgba(255,255,255,0.72);
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  margin-bottom: 28px;
  max-width: 46rem;
}
.card {
  background: var(--card);
  border: 2px solid var(--card-line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.feat-grid, .hero-grid {
  display: grid;
  gap: 16px;
}
.feat-grid { grid-template-columns: repeat(3, 1fr); }
.hero-grid { grid-template-columns: repeat(4, 1fr); }
.feat .icon { font-size: 32px; margin-bottom: 6px; }
.feat h3, .hero-card h3, .ctrl-grid h3 {
  font-size: 22px;
  color: var(--gold);
  -webkit-text-stroke: 2px var(--navy);
  paint-order: stroke fill;
  margin-bottom: 6px;
}
.feat p, .hero-card p, .card li, .faq p { color: var(--muted); }
.hero-card { padding: 12px 12px 18px; text-align: center; }
.hero-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(#9ad6ff, #b7e8a4);
  margin-bottom: 10px;
}
.hero-card .power {
  color: #9be7ff;
  font-size: 16px;
  margin-bottom: 4px;
  -webkit-text-stroke: 0;
}
.hero-card p { font-size: 14px; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.shot {
  appearance: none;
  background: var(--card);
  border: 2px solid var(--card-line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: var(--shadow);
}
.shot img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
  background: #0c2142;
}
.shot span {
  padding: 8px 10px 10px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

/* ---------- video / controls / faq ---------- */
.video-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid var(--navy);
  outline: 3px solid var(--gold);
  background: #000;
  box-shadow: var(--shadow);
}
.video-wrap video { width: 100%; height: auto; display: block; }
.ctrl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ctrl-grid ul { padding-left: 18px; }
.ctrl-grid li { margin: 6px 0; }
.faq details {
  background: var(--card);
  border: 2px solid var(--card-line);
  border-radius: 16px;
  margin-bottom: 10px;
  padding: 4px 16px 4px;
}
.faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-family: 'Lilita One', sans-serif;
  font-size: 20px;
  color: var(--gold);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+  '; color: #fff; }
.faq details[open] summary::before { content: '–  '; }
.faq p { padding: 0 0 14px; }

/* ---------- footer + lightbox ---------- */
.foot {
  padding: 48px 20px 32px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(8,22,40,0.82) 30%);
}
.foot .brand { justify-content: center; margin-bottom: 10px; font-size: 28px; }
.foot p { color: var(--muted); max-width: 32rem; margin: 8px auto; }
.foot .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.foot .copy { color: #9aaccc; font-size: 13px; margin-top: 16px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 14, 28, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lightbox p { margin-top: 10px; color: #fff; font-weight: 700; }
.lb-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feat-grid, .hero-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; }
  .hero-art { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .top { flex-wrap: nowrap; gap: 8px; padding: 8px 10px; }
  .brand { font-size: 20px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 40px;
    height: 36px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 22, 40, 0.96);
    padding: 12px 20px 16px;
    flex-direction: column;
    gap: 10px;
    border-bottom: 2px solid rgba(255,210,63,0.25);
  }
  .top.open .nav-links { display: flex; }
  .top-actions { margin-left: 0; }
  .ctrl-grid { grid-template-columns: 1fr; }
  .btn { font-size: 18px; padding: 12px 16px; width: 100%; }
  .top .btn-sm { width: auto; font-size: 14px; padding: 6px 10px; }
  .cta { flex-direction: column; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot img { height: 150px; }
  .section, .hero { scroll-margin-top: 64px; }
}
@media (max-width: 400px) {
  .top { padding: 8px 8px; gap: 6px; }
  .brand { font-size: 18px; }
  .top .btn-play { display: none; }
  .hero, .section { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 52px; }
  .feat-grid, .hero-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-card { padding: 8px 8px 12px; }
  .hero-card h3 { font-size: 18px; }
  .hero-card p { font-size: 13px; }
  .lead { font-size: 16px; }
}
