:root {
  --bg: #f6efe2;
  --surface: #fffaf0;
  --text: #2b2118;
  --muted: #6e5d4b;
  --accent: #a4561c;
  --accent-ink: #fff8ee;
  --line: #e2d4bd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120d;
    --surface: #221a13;
    --text: #f1e6d4;
    --muted: #b6a48c;
    --accent: #e39a4f;
    --accent-ink: #1b130b;
    --line: #3a2e22;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
h1, h2, h3, .brand { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.15; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { font-size: 28px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: .5px; }
.brand span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 16px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  background: none; border: 0; padding: 4px 10px; font: inherit; font-size: 13px;
  color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(38px, 7vw, 60px); margin: 0 0 12px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0; }

.game {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; margin-bottom: 64px;
}
.game img { width: 100%; height: auto; border-radius: 14px; display: block; }
.game h2 { font-size: 40px; margin: 0 0 4px; }
.tag { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.game ul { padding-left: 20px; margin: 16px 0 24px; }
.game li { margin: 4px 0; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px; text-decoration: none;
  font-weight: 700; font-size: 15px; border: 1px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); }
.btn.disabled { opacity: .6; pointer-events: none; }

.hero-buttons { margin-top: 24px; }

.block { margin-bottom: 64px; }
.block > h2 { font-size: 36px; margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
}
.card h3 { font-size: 24px; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px;
}
.game .title { font-size: 36px; margin: 0 0 4px; }
.game { margin-bottom: 0; }

section.about { max-width: 640px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* privacy page */
.doc { padding: 40px 0 64px; max-width: 720px; }
.doc h1 { font-size: 44px; margin: 0 0 8px; }
.doc h2 { font-size: 28px; margin: 40px 0 8px; }

/* language switch */
html[data-lang="en"] [data-l="uk"],
html[data-lang="uk"] [data-l="en"] { display: none; }

@media (max-width: 720px) {
  .game { grid-template-columns: 1fr; padding: 16px; gap: 20px; }
  .hero { padding: 40px 0 28px; }
  nav .hide-sm { display: none; }
}
