/* Layout: a single column that widens to two at desktop. Phones in the hero are real
   screenshots of the games, framed like an iPhone. */
:root {
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --ink: #15171C;
  --ink-2: #5E6573;
  --ink-3: #9AA1AE;
  --line: rgba(21, 23, 28, 0.08);
  --red: #F0413A;
  --red-deep: #C92F28;
  --blue: #2F6BFF;
  --yellow: #FFB800;
  --violet: #7C5CFF;
  --mint: #13B98E;
  --shadow: 0 12px 32px rgba(21, 23, 28, 0.10), 0 2px 6px rgba(21, 23, 28, 0.06);
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.55;
}

a { color: var(--red-deep); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -0.01em; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: var(--shadow); }
nav { display: flex; gap: 6px; }
nav a { color: var(--ink-2); text-decoration: none; font-weight: 800; padding: 8px 10px; border-radius: 10px; }
nav a:hover { color: var(--ink); background: var(--surface); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-block: 32px 48px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  font-weight: 900;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-2); margin: 0 0 28px; max-width: 32em; text-wrap: pretty; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 900; font-size: 19px;
  box-shadow: 0 12px 28px rgba(240, 65, 58, 0.35);
  transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(0.97); }
.button.is-static, .button.is-static:hover, .button.is-static:active { transform: none; cursor: default; }
.button svg { width: 18px; height: 18px; }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 58px; padding: 0 22px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font-weight: 800;
  box-shadow: var(--shadow);
}
.note { margin: 16px 0 0; color: var(--ink-3); font-size: 15px; }

.phones { position: relative; display: flex; justify-content: center; min-height: 520px; }
.phone {
  width: min(260px, 62vw);
  border-radius: 40px;
  padding: 10px;
  background: #0E1219;
  box-shadow: 0 30px 70px rgba(12, 16, 24, 0.28);
}
.phone img { border-radius: 31px; aspect-ratio: 390 / 844; object-fit: cover; width: 100%; height: auto; }
.phone.back { position: absolute; transform: translate(-46%, 34px) rotate(-7deg) scale(0.86); opacity: 0.95; }
.phone.front { position: relative; transform: translateX(22%) rotate(4deg); }

section.games { padding-block: 24px 40px; }
section h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 900;
  text-wrap: balance;
}
.section-lead { color: var(--ink-2); margin: 0 0 26px; font-size: 18px; max-width: 36em; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.game-card {
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  min-width: 0;
}
.game-card .shot { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--accent); }
.game-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center var(--focus, 40%); }
.game-card .text { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.game-card h3 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.game-card h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
.game-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-block: 16px 56px; }
.fact { background: var(--surface); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); }
.fact strong { display: block; font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.fact span { color: var(--ink-2); font-size: 15px; }

.page { padding-block: 16px 64px; max-width: 760px; }
.page h1 { font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 8px; font-weight: 900; }
.updated { color: var(--ink-3); margin: 0 0 24px; }
.page .card { background: var(--surface); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.page h2 { font-size: 21px; font-weight: 900; margin: 26px 0 6px; letter-spacing: -0.01em; }
.page h2:first-child { margin-top: 0; }
.page p { margin: 0; color: var(--ink-2); }
.page p + p { margin-top: 10px; }
.page strong { color: var(--ink); }

footer {
  border-top: 1px solid var(--line);
  padding-block: 24px 40px;
  color: var(--ink-3);
  font-size: 15px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
}
footer a { color: var(--ink-2); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 12px 32px; gap: 28px; }
  .phones { min-height: 0; padding-block: 8px 30px; }
  .phone { width: min(240px, 62vw); }
  .phone.back { display: none; }
  .phone.front { transform: rotate(2deg); }
}
@media (max-width: 420px) {
  .game-grid { gap: 12px; }
  .game-card .text { padding: 12px 14px 16px; }
  .game-card h3 { font-size: 18px; }
  .game-card p { font-size: 14px; }
}
@media (max-width: 480px) {
  nav a { padding: 8px 6px; font-size: 15px; }
  .brand span { display: none; }
  .button, .soon { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
