/* ============================================================
   DRAG 'EM STUDIOS — shared design tokens
   Palette: near-black + carved stone + one ember accent
   (the torch is the only light — same rule as the game covers)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Eagle+Lake&family=Zilla+Slab:wght@500;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg:          #0b0a08;
  --panel:       #131210;
  --panel-2:     #1a1815;
  --stone:       #8f887a;
  --stone-dim:   #5c574c;
  --stone-dark:  #332f27;
  --ink:         #d8cdb8;
  --ink-bright:  #efe6d3;
  --ember:       #e8802f;
  --ember-bright:#ffab5c;
  --ember-dim:   #7a4318;

  --display: 'Eagle Lake', serif;
  --heading: 'Zilla Slab', serif;
  --body:    'Crimson Text', serif;
  --mono:    'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
}

a { color: var(--ember); text-decoration: none; }
a:hover { color: var(--ember-bright); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

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

/* ---------- layout shells ---------- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,10,8,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-dark);
}
.site-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-bright);
  font-size: 18px;
  text-transform: uppercase;
}
.brand span { color: var(--ember); }
.nav-links {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  justify-content: flex-end;
}
.site-nav .wrap { flex-wrap: wrap; min-height: 64px; height: auto; padding-top: 10px; padding-bottom: 10px; }
.nav-links a { color: var(--stone); }
.nav-links a:hover, .nav-links a.active { color: var(--ember); }

/* ---------- hero (shared shape, content differs per page) ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--stone-dark);
}
.hero-glow {
  position: absolute;
  top: 38%; left: 50%;
  width: 520px; height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232,128,47,0.35) 0%, rgba(232,128,47,0.12) 35%, rgba(232,128,47,0) 70%);
  filter: blur(6px);
  pointer-events: none;
  animation: flicker 5.5s infinite ease-in-out;
}
@keyframes flicker {
  0%   { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  18%  { opacity: 0.65; transform: translate(-50%, -50%) scale(0.97); }
  33%  { opacity: 1;    transform: translate(-50%, -50%) scale(1.04); }
  47%  { opacity: 0.7;  transform: translate(-50%, -50%) scale(0.99); }
  62%  { opacity: 0.95; transform: translate(-50%, -50%) scale(1.02); }
  78%  { opacity: 0.6;  transform: translate(-50%, -50%) scale(0.96); }
  100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}
.hero-banner {
  width: 100%;
  border-bottom: 1px solid var(--stone-dark);
  background: #000;
}
.hero-banner img { width: 100%; display: block; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 76px;
  line-height: 1;
  margin: 0 0 14px;
  color: var(--ink-bright);
  text-shadow: 0 0 28px rgba(232,128,47,0.25);
}
.hero .sub {
  font-family: var(--heading);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 26px;
}
.hero .tagline {
  display: inline-block;
  font-family: var(--body);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  padding: 10px 28px;
  border: 1px solid var(--stone-dark);
  border-radius: 2px;
}

/* divider motif */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 44px 0;
  color: var(--stone-dim);
}
.divider::before, .divider::after {
  content: ''; height: 1px; width: 90px;
  background: var(--stone-dark);
}
.divider .glyph { color: var(--ember-dim); font-size: 14px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section-title {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink-bright);
  margin: 0 0 8px;
}
.section-lede {
  color: var(--stone);
  font-size: 18px;
  max-width: 640px;
  margin: 0 0 40px;
}

/* ---------- game grid / cards ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 720px) {
  .game-grid { grid-template-columns: 1fr; }
}
.game-card {
  background: var(--panel);
  border: 1px solid var(--stone-dark);
  border-radius: 3px;
  padding: 28px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.game-card:hover {
  border-color: var(--ember-dim);
  transform: translateY(-2px);
}
.game-card .status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid var(--ember-dim);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  width: fit-content;
}
.game-card h3 {
  font-family: var(--heading);
  font-size: 24px;
  margin: 0;
  color: var(--ink-bright);
}
.game-card .genre {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.game-card p { margin: 0; color: var(--ink); font-size: 17px; }
.game-card .cta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 10px;
}
.game-card.has-image { padding: 0; overflow: hidden; }
.game-card.has-image .card-img { aspect-ratio: 3/4; overflow: hidden; background: #000; }
.game-card.has-image .card-img img { width: 100%; height: 100%; object-fit: cover; }
.game-card.has-image .card-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- page content blocks (game detail pages) ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.cover-frame {
  border: 1px solid var(--stone-dark);
  background: #000;
  overflow: hidden;
}
.cover-frame img { width: 100%; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--stone-dark);
  display: flex; gap: 14px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .mark {
  color: var(--ember);
  font-family: var(--mono);
  flex-shrink: 0;
}

.meta-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 28px;
}
.pill {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--stone-dark);
  padding: 5px 12px;
  border-radius: 2px;
}

.emblem {
  width: 100%;
  aspect-ratio: 3/4;
  border: 1px solid var(--stone-dark);
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.emblem::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(232,128,47,0.18), transparent 60%);
}
.emblem .glyph {
  z-index: 1;
  color: var(--stone-dark);
}
.emblem .glyph svg { width: 130px; height: 130px; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-bright);
  border: 1px solid var(--ember-dim);
  padding: 12px 24px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background: var(--ember-dim);
  color: var(--ink-bright);
}
.btn.ghost { border-color: var(--stone-dark); color: var(--stone); }
.btn.ghost:hover { border-color: var(--stone); background: transparent; color: var(--ink); }

.external-callout {
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid var(--ember-dim);
  background: linear-gradient(180deg, rgba(232,128,47,0.06), transparent);
  border-radius: 3px;
}
.external-callout p { margin: 0 0 14px; color: var(--ink); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--stone-dark);
  padding: 40px 0;
  margin-top: 40px;
}
footer .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
footer .foot-links { display: flex; gap: 20px; font-family: var(--mono); font-size: 13px; }
footer .copy { font-family: var(--mono); font-size: 12px; color: var(--stone-dim); }

/* ---------- back link on detail pages ---------- */
.back-link {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 28px;
}
