:root {
  color-scheme: light;
  --ink: #1c251f;
  --muted: #56635b;
  --jungle: #35594f;
  --jungle-dark: #203c35;
  --leaf: #789c63;
  --sand: #f2ead8;
  --paper: #fffdf7;
  --line: #d9d6c9;
  --accent: #b7653d;
  --shadow: 0 22px 60px rgba(32, 60, 53, 0.12);
  --content: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 5%, rgba(120, 156, 99, 0.18), transparent 26rem),
    var(--sand);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--jungle); text-underline-offset: 3px; }
a:hover { color: var(--jungle-dark); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 9px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--jungle-dark);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 214, 201, 0.9);
  background: rgba(242, 234, 216, 0.9);
  backdrop-filter: blur(14px);
}

.nav,
.container {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: var(--jungle);
  box-shadow: 0 5px 15px rgba(32, 60, 53, 0.2);
  font-size: 1.15rem;
}

.nav-link {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  color: #fff;
  background: var(--jungle-dark);
}

.home-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -330px;
  left: -120px;
  border: 70px solid rgba(120, 156, 99, 0.16);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 76px;
  align-items: center;
}

.home-hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 34px;
  color: #d5e1db;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: #111;
}

.store-badge > span:first-child { font-size: 1.4rem; }
.store-badge small,
.store-badge strong { display: block; line-height: 1.1; }
.store-badge small { margin-bottom: 3px; color: #ccd2cf; font-size: 0.7rem; }
.text-link { color: #d6e8c8; font-weight: 750; text-decoration: none; }
.text-link:hover { color: #fff; }

.game-card {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 34px;
  background: #59604b;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  transform: rotate(2deg);
}

.game-card img { width: 100%; height: 430px; display: block; object-fit: cover; }
.game-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; padding: 26px 30px; background: rgba(18, 38, 32, 0.88); }
.game-card figcaption strong,
.game-card figcaption span { display: block; }
.game-card figcaption strong { font-size: 1.25rem; }
.game-card figcaption span { color: #cddbd3; font-size: 0.9rem; }

.feature-section { padding: 92px 0; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2,
.privacy-callout h2 { margin-bottom: 0; font-size: clamp(2.3rem, 5vw, 4rem); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 12px 30px rgba(32, 60, 53, 0.06); }
.feature-icon { width: 52px; height: 52px; display: block; margin-bottom: 26px; padding: 7px; border-radius: 13px; background: var(--jungle-dark); }
.feature-card h3 { margin: 0 0 9px; font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); }

.privacy-callout { padding: 84px 0; color: #fff; background: var(--jungle); }
.privacy-callout .eyebrow { color: #d6e8c8; }
.privacy-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.privacy-grid > div:last-child { max-width: 600px; }
.privacy-grid p { margin: 0 0 24px; color: #dce7e1; font-size: 1.08rem; }
.button { display: inline-flex; padding: 12px 18px; border-radius: 12px; color: var(--jungle-dark); background: #fff; font-weight: 800; text-decoration: none; }
.button:hover { color: var(--jungle-dark); background: #edf5e7; }

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 52px;
  color: #fff;
  background: var(--jungle-dark);
}

.legal-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -210px;
  right: 4vw;
  border: 55px solid rgba(120, 156, 99, 0.22);
  border-radius: 50%;
}

.legal-hero .container { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 16px;
  color: #c9ddb9;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 { margin-top: 0; line-height: 1.14; letter-spacing: -0.035em; }

h1 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.legal-meta { margin: 0; color: #d4dfd9; }

.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin: 0 0 40px;
  padding: 22px 24px;
  border: 1px solid #cbd8bf;
  border-radius: 18px;
  background: #edf5e7;
}

.summary-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--leaf);
  font-weight: 900;
}

.summary strong { display: block; margin-bottom: 3px; }
.summary p { margin: 0; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  align-items: start;
  padding: 64px 0 96px;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 18px 0;
  border-top: 3px solid var(--accent);
}

.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: 0.88rem; text-decoration: none; }
.toc a:hover { color: var(--jungle); }

.legal-content {
  padding: 40px 46px 52px;
  border: 1px solid rgba(217, 214, 201, 0.85);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 46px 0 14px;
  color: var(--jungle-dark);
  font-size: 1.6rem;
  scroll-margin-top: 96px;
}

.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p,
.legal-content li { color: #3f4b43; }
.legal-content ul { padding-left: 22px; }
.legal-content li + li { margin-top: 7px; }
.legal-content code { padding: 2px 6px; border-radius: 6px; background: #eee9dc; overflow-wrap: anywhere; }

.address {
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: #f7efe3;
  font-style: normal;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.company strong { display: block; margin-bottom: 4px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 820px) {
  .hero-grid,
  .privacy-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 54px; }
  .game-card { width: min(100%, 440px); margin: 0 auto; transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .privacy-grid { gap: 28px; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { display: none; }
}

@media (max-width: 580px) {
  .nav,
  .container { width: min(calc(100% - 28px), var(--content)); }
  .nav { min-height: 64px; }
  .home-hero { padding: 58px 0 64px; }
  .home-hero h1 { font-size: 3.3rem; }
  .game-card,
  .game-card img { min-height: 370px; height: 370px; }
  .feature-section,
  .privacy-callout { padding: 64px 0; }
  .legal-hero { padding: 54px 0 38px; }
  h1 { font-size: 2.4rem; }
  .legal-layout { padding: 34px 0 64px; }
  .legal-content { padding: 30px 22px 38px; border-radius: 18px; }
  .summary { grid-template-columns: 1fr; }
  .footer-grid { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
