:root {
  --bg: #000000;
  --bg-soft: #141216;
  --card: #17151a;
  --card-border: #2a2530;
  --cream: #ede1c9;
  --cream-dim: #b9ae98;
  --flame-1: #c81e0a;
  --flame-2: #ff5c1a;
  --flame-3: #ffb648;
  --text: #eae6de;
  --text-dim: #9b968f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / Hero ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ---- Language switcher ---- */

.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
  padding: 10px 0;
}

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-switch a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang-switch a:hover {
  color: var(--cream);
  border-color: var(--card-border);
}

.lang-switch a[aria-current="page"] {
  color: var(--flame-3);
  border-color: var(--card-border);
  background: var(--bg-soft);
}

header.hero {
  position: relative;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 48px;
}

.hero-banner {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: auto;
}

/* ---- Sections ---- */

main { padding: 72px 0 40px; }

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--cream);
  margin: 0 0 10px;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
  font-size: 0.98rem;
}

/* ---- Games grid ---- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
  border-color: #443b2e;
  transform: translateY(-2px);
}

.game-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.game-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.game-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.game-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
}

.store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--card-border);
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.store-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.store-btn.active:hover {
  border-color: var(--flame-2);
  color: var(--cream);
}

.store-btn.disabled {
  color: var(--text-dim);
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

/* ---- Privacy policy link ---- */

.game-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.privacy-link {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: var(--card-border);
  text-underline-offset: 3px;
}

.privacy-link:hover {
  color: var(--flame-3);
  text-decoration-color: var(--flame-3);
}

/* ---- Coming soon placeholder card ---- */

.game-card.placeholder {
  background: transparent;
  border: 1.5px dashed var(--card-border);
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  min-height: 200px;
}

.game-card.placeholder .plus {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--flame-2);
  line-height: 1;
  margin-bottom: 4px;
}

.game-card.placeholder p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--card-border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  opacity: 0.85;
}
