:root {
  --bg: #07090d;
  --bg-raised: #0e131b;
  --line: rgba(255, 255, 255, 0.1);
  --text: #e9edf2;
  --muted: #9ba6b4;
  --ember: #ff7a2f;
  --ember-hot: #ff9a5c;
  --radius: 14px;
  --wrap: 1040px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--ember-hot); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--font-display); line-height: 1.1; margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Language switch */
.lang {
  position: absolute;
  top: 18px;
  right: var(--gutter);
  z-index: 2;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font: 600 13px/1.6 var(--font-display);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.lang:hover { border-color: var(--ember); color: var(--ember-hot); }

/* Hero: name + links, all on the first screen */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(96px, 16vh, 160px) 0 clamp(48px, 9vh, 88px);
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 75% 40%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.94) 0%, rgba(7, 9, 13, 0.75) 48%, rgba(7, 9, 13, 0.15) 85%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero h1 {
  font-size: clamp(46px, 8.5vw, 92px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero h1 span { color: var(--ember); }
.tagline { margin: 10px 0 28px; font-size: clamp(17px, 2vw, 20px); color: #d3d9e1; }
.tagline a { color: var(--ember-hot); text-underline-offset: 4px; }

.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 9, 13, 0.55);
  font: 700 16px/1.2 var(--font-display);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.link, .btn { gap: 10px; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.link:hover { border-color: var(--ember); color: var(--ember-hot); }

.socials { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials:not(:has(li:not([hidden]))) { display: none; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 9, 13, 0.55);
  transition: border-color 0.15s, color 0.15s;
}
.social .ico { width: 22px; height: 22px; }
.social:hover { border-color: var(--ember); color: var(--ember-hot); }
.link-primary, .btn {
  background: var(--ember);
  border-color: var(--ember);
  color: #160a03;
}
.link-primary:hover, .btn:hover { background: var(--ember-hot); border-color: var(--ember-hot); color: #160a03; }

/* Game */
.game { padding: clamp(32px, 6vw, 64px) 0; }
.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}
.game-card img { width: 100%; border-radius: var(--radius); }
.eyebrow {
  margin: 0 0 6px;
  font: 600 13px/1.4 var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-hot);
}
.game h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 700; }
.game p { color: #c8cfd8; margin: 12px 0 0; }
.tags { list-style: none; margin: 16px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  font-size: 14px;
  color: var(--muted);
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .game-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { padding-top: 84px; }
  .hero-bg img { object-position: 80% 30%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(7, 9, 13, 0.45) 0%, rgba(7, 9, 13, 0.82) 45%, var(--bg) 100%);
  }
  .links { flex-direction: column; }
  .link, .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .link, .btn, .social { transition: none; }
}
