:root {
  --sky: #8fcdf5;
  --sky-deep: #4aa3e8;
  --cream: #fff8ea;
  --paper: #ffffff;
  --ink: #3b2112;
  --ink-soft: #7a5a44;
  --red: #e8332a;
  --orange: #f29a1f;
  --gold: #ffd25a;
  --green: #6cc24a;
  --line: #ecd9bd;
  --radius: 22px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: #c2410c; }
a:hover { color: var(--red); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .brand, .btn { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; }

/* ---- Top bar ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 234, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 800; }
.nav a:hover, .nav a[aria-current] { color: var(--red); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 0 0 56px;
  background: linear-gradient(180deg, var(--sky) 0%, #cfeafb 70%, var(--cream) 100%); }
.hero-art { width: 100%; height: 260px; object-fit: cover; object-position: center 35%; }
.hero .logo { width: min(440px, 80%); margin: -190px auto 6px; position: relative; filter: drop-shadow(0 12px 18px rgba(59, 33, 18, .3)); }
.hero p.lead { font-size: 20px; color: var(--ink); max-width: 640px; margin: 0 auto 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-size: 18px; text-decoration: none;
  color: #fff; background: linear-gradient(180deg, #ff6a4d, var(--red) 60%, #b81f17);
  box-shadow: 0 0 0 3px var(--ink), 0 8px 18px rgba(59, 33, 18, .3);
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.alt { background: linear-gradient(180deg, #7cc7ff, var(--sky-deep) 60%, #2b7fc4); }
.btn.soon { cursor: default; }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.note { color: var(--ink-soft); font-size: 14px; margin-top: 14px; }

/* ---- Sections ---- */
section { padding: 64px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 5vw, 42px); color: var(--ink); text-align: center; margin-bottom: 8px; line-height: 1.15; }
.sub { text-align: center; color: var(--ink-soft); margin: 0 auto 36px; max-width: 640px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 16px rgba(59, 33, 18, .06); }
.feature img { width: 72px; height: 72px; margin-bottom: 10px; }
.feature h3 { color: var(--red); font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); }

.shots { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.shots img { width: 240px; flex: 0 0 auto; border-radius: 18px; scroll-snap-align: start; box-shadow: 0 10px 24px rgba(59, 33, 18, .25); }
.shots:empty, .shots-section.empty { display: none; }

.worlds { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; margin: 0 auto; }
.worlds span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 800; }

.press { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.facts dt { font-family: "Fredoka", sans-serif; font-weight: 700; color: var(--red); margin-top: 8px; }
.facts dt:first-child { margin-top: 0; }
.downloads a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.downloads a:last-child { border-bottom: 0; }

/* ---- Document pages (privacy, support) ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(32px, 6vw, 46px); color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.doc .meta { color: var(--ink-soft); margin-bottom: 28px; }
.doc h2 { text-align: left; font-size: 24px; margin: 36px 0 10px; }
.doc h3 { font-size: 19px; color: var(--red); margin: 22px 0 6px; }
.doc p, .doc ul, .doc table { margin-bottom: 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
footer a { color: var(--ink-soft); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: 15px; }
  .brand span { display: none; }
  .hero-art { height: 200px; }
  .hero .logo { margin-top: -150px; }
  .shots img { width: 200px; }
}
