:root {
  --bg: #0a0c12;
  --bg-elev: #12151d;
  --ink: #f2f4f8;
  --muted: #9aa3b2;
  --gold: #c9a46a;
  --gold-bright: #e2c48a;
  --ember: #c44b2a;
  --line: rgba(255,255,255,0.08);
  --font-display: "Cinzel", Georgia, serif;
  --font-ui: "Source Sans 3", system-ui, sans-serif;
  --max: 1180px;
  --pad: clamp(1rem, 3.5vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-ui);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: 0.02em; }
p { margin: 0; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* —— TOP BAR (Blizzard-like) —— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10,12,18,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.top-inner {
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-bright);
  flex: 0 0 auto;
}
.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.5rem;
  flex: 1 1 auto;
}
.top nav a {
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 2px;
  transition: color .2s ease, background .2s ease;
}
.top nav a:hover,
.top nav a.is-active {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.top-cta {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(201,164,106,0.45);
  color: var(--gold-bright);
  background: rgba(201,164,106,0.08);
  transition: background .2s ease, border-color .2s ease;
}
.top-cta:hover {
  background: rgba(201,164,106,0.16);
  border-color: var(--gold-bright);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: #fff;
}

/* —— HERO BANNER —— */
.banner {
  position: relative;
  min-height: clamp(340px, 52vh, 520px);
  background: #07080c;
  overflow: hidden;
}
.banner-slides { position: relative; height: 100%; min-height: inherit; }
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
  background:
    linear-gradient(90deg, rgba(7,8,12,0.92) 0%, rgba(7,8,12,0.55) 42%, rgba(7,8,12,0.25) 100%),
    var(--banner) center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vh, 3rem) var(--pad) 3.2rem;
}
.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.banner-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(7,8,12,0.85));
  pointer-events: none;
}
.banner-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
}
.banner-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.banner-slide h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0,0,0,0.55);
}
.banner-lead {
  margin-top: 0.75rem;
  color: #d7dde8;
  font-size: 1.02rem;
  max-width: 34rem;
}
.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: filter .2s ease, background .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #d45a35, #9b2f18);
  color: #fff;
  border-color: rgba(255,200,160,0.25);
  box-shadow: 0 8px 22px rgba(180,60,30,0.28);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}
.banner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
}
.banner-dots button.is-active {
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(201,164,106,0.2);
}

/* —— FEATURED GAMES SHELF —— */
.shelf {
  padding: 2.4rem 0 2.8rem;
  background: #0c0e14;
  border-top: 1px solid var(--line);
}
.shelf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
}
.shelf-head h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: #fff;
}
.shelf-head p {
  font-size: 0.86rem;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
}
.game-tile {
  position: relative;
  display: block;
  background: #151922;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  min-width: 0;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.game-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #0a0c12;
  transition: transform .35s ease, filter .35s ease;
}
.game-meta {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem 0.85rem;
  background: linear-gradient(180deg, #151922, #10131a);
}
.game-genre {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.game-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #fff;
}
.game-note {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}
.game-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  background: var(--ember);
  color: #fff;
}
.game-tile:hover {
  border-color: rgba(201,164,106,0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.game-tile:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

/* —— PROMO / ABOUT / CTA —— */
.promo {
  padding: 2.6rem 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196,75,42,0.12), transparent 50%),
    var(--bg-elev);
  border-top: 1px solid var(--line);
}
.promo-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 1.5rem 2rem;
  align-items: center;
}
.promo-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.7rem;
}
.promo-copy > p {
  color: #c8d0dc;
  max-width: 38rem;
  font-size: 1.02rem;
}
.promo-points {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.promo-points li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.65rem;
  background: var(--ember);
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(196,75,42,0.5);
}
.promo-aside {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}
.promo-aside img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.45));
}

.about {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem 2rem;
  align-items: start;
}
.about h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-bottom: 0.7rem;
}
.about p {
  color: #c8d0dc;
  max-width: 40rem;
}
.facts {
  margin: 0;
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.facts dd { margin: 0; color: #e8edf5; }

.cta-band {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(196,75,42,0.16), rgba(18,21,29,0.9) 55%);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.cta-inner h2 { font-size: 1.45rem; margin-bottom: 0.25rem; }
.cta-inner p { color: #d0d6e0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.foot {
  border-top: 1px solid var(--line);
  background: #07080c;
  padding: 1.4rem 0 1.8rem;
}
.foot-inner {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-bright);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.foot-brand img { width: 24px; height: 24px; object-fit: contain; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.foot-links a:hover { color: #fff; }
.foot-legal {
  font-size: 0.72rem;
  color: #6f7785;
}

@media (max-width: 1100px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .promo-inner,
  .about-inner { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .top-cta { display: none; }
  .top nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    background: rgba(10,12,18,0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 0;
  }
  .top nav.is-open { display: flex; }
  .top nav a {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 0;
    border-top: 1px solid rgba(255,255,255,0.04);
  }
}
@media (max-width: 640px) {
  .game-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .banner { min-height: 380px; }
  .facts div { grid-template-columns: 1fr; gap: 0.15rem; }
}
