/* The page about the game (public/welcome.html): the first thing a new visitor sees. No scripts of the game, nothing
   heavy: it opens at once, on a phone too. The colours come from the game's city: grass, water, the interface's blue. */
:root {
  --bg: #f4f7f2;
  --card: #ffffff;
  --ink: #17242f;
  --muted: #566372;
  --line: #d9e0d6;
  --accent: #2f7dd1;
  --accent-dark: #1f5fa8;
  --soft: #e6efe0;
  --shadow: 0 14px 40px rgba(30, 50, 40, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a24;
    --card: #182330;
    --ink: #e8edf2;
    --muted: #a0adbb;
    --line: #2a3747;
    --accent: #4a97e8;
    --accent-dark: #2f7dd1;
    --soft: #1a2734;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }

.top {
  position: absolute; z-index: 2; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #17242f; text-decoration: none; }
.brand img { border-radius: 8px; }
.top-play {
  padding: 8px 18px; border-radius: 999px; background: #fff; color: #17242f; font-weight: 600; text-decoration: none;
  box-shadow: 0 2px 10px rgba(20, 40, 30, 0.18);
}
.top-play:hover { background: #f1f5f9; }

.play {
  display: inline-block; padding: 16px 34px; border-radius: 14px;
  background: var(--accent); color: #fff; font-size: 19px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 22px rgba(47, 125, 209, 0.38);
  transition: background 0.15s, transform 0.15s;
}
.play:hover { background: var(--accent-dark); transform: translateY(-1px); }
.play:focus-visible, .top-play:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #f2a93b; outline-offset: 3px; }

/* The city behind the words: a light veil on the left keeps the text readable over the map. */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; background: #d4dfba; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(246, 249, 241, 0.97) 0%, rgba(246, 249, 241, 0.93) 34%, rgba(246, 249, 241, 0.25) 62%, rgba(246, 249, 241, 0) 78%),
    linear-gradient(to bottom, rgba(246, 249, 241, 0.7) 0, rgba(246, 249, 241, 0) 90px);
}
.hero-text { position: relative; z-index: 1; width: min(620px, 100%); padding: 96px clamp(16px, 4vw, 48px) 56px; color: #17242f; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); }
.lead { margin: 20px 0 28px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: #2c3a46; }
.hero-note { margin: 14px 0 0; font-size: 15px; color: #47545f; }

.facts {
  list-style: none; margin: 0; padding: 22px clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--card); border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 15px; line-height: 1.3;
}
.facts b { display: block; color: var(--ink); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.01em; }

section.way, section.feature, section.faq, section.last { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }

.way ol { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.way li { counter-increment: step; font-size: 16px; line-height: 1.5; color: var(--muted); }
.way li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: #ffc93c; color: #3a2a00; font-weight: 700;
}
.way li b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature img { border-radius: 14px; box-shadow: var(--shadow); }
.feature p { margin: 16px 0 0; color: var(--muted); }

.faq { max-width: 820px !important; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq h2 { margin-bottom: 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.last { text-align: center; }
.last h2 { margin-bottom: 26px; }

.foot { padding: 32px clamp(16px, 4vw, 48px) 40px; background: var(--card); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.foot p { margin: 6px 0 0; }
.foot a { color: inherit; }
.foot .age { font-weight: 700; border: 1.5px solid currentColor; border-radius: 5px; padding: 0 4px; }

@media (max-width: 1040px) {
  .way ol { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
}
/* A phone: the words first on a light ground, the city under them. */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { display: block; min-height: 0; background: var(--bg); }
  .hero::after { display: none; }
  .hero-map { position: static; height: 300px; object-position: 55% 50%; }
  .hero-text { width: 100%; padding: 26px 16px 28px; color: var(--ink); }
  .lead, .hero-note { color: var(--muted); }
  .play { display: block; text-align: center; }
  .brand { padding: 4px 12px 4px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.9); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .way ol { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play { transition: none; }
}
