:root {
  --bg: #08070a;
  --bg-2: #110e10;
  --panel: #15110f;
  --ink: #ece2d0;
  --ink-dim: #a9998a;
  --ink-faint: #6d6056;
  --ember: #ff7a2f;
  --ember-hot: #ffb35c;
  --gold: #c9a35b;
  --gold-dim: #6e5a34;
  --logo-font: "Jacquard 12", "Times New Roman", serif;
  --head-font: "Cinzel", "Times New Roman", serif;
  --body-font: "Spectral", Georgia, serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
a { color: inherit; }

/* Language: only the active one is shown */
html[lang="en"] [data-l="fr"],
html[lang="fr"] [data-l="en"] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .9rem clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(8, 7, 10, .92) 0%, rgba(8, 7, 10, .6) 55%, rgba(8, 7, 10, 0));
  text-shadow: 0 1px 3px #000;
  transition: background .3s;
}
.topbar.solid { background: rgba(8, 7, 10, .94); box-shadow: 0 1px 0 var(--gold-dim); }
.brand {
  font-family: var(--logo-font);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.links { display: flex; gap: 1.75rem; }
.links a, .lang button {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
}
.links a:hover { color: var(--ember-hot); }
.lang { display: flex; border: 1px solid var(--gold-dim); }
.lang button { background: none; border: 0; padding: .35rem .6rem; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold-dim); color: var(--ink); }
.lang button:focus-visible, .btn:focus-visible, .links a:focus-visible { outline: 2px solid var(--ember-hot); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  z-index: -2;
  image-rendering: auto;
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 7, 10, .75) 0%, rgba(8, 7, 10, .35) 40%, rgba(8, 7, 10, 0) 65%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 7, 10, 0) 35%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 122, 47, .12), transparent 60%);
}
.hero-content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) clamp(5rem, 14vh, 9rem);
}
.kicker, .eyebrow {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ember-hot);
  margin: 0 0 .5rem;
}
.logo {
  font-family: var(--logo-font);
  font-weight: 400;
  font-size: clamp(4.5rem, 15vw, 10.5rem);
  line-height: .85;
  margin: 0;
  color: #f4e9d4;
  text-shadow:
    0 6px 0 #3b1a0c,
    0 0 40px rgba(255, 122, 47, .45),
    0 0 90px rgba(255, 122, 47, .25);
}
.logo.small { font-size: clamp(3.5rem, 10vw, 6rem); }
.tagline {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-style: italic;
  margin: 1.25rem 0 2.25rem;
  max-width: 34rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.5rem;
  font-family: var(--head-font);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: left;
  border: 1px solid transparent;
  transition: transform .15s, background .15s;
}
.btn small {
  display: block;
  font-family: var(--body-font);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: none;
  opacity: .8;
}
.btn svg { width: 1.6rem; height: 1.6rem; flex: none; }
.btn-steam {
  background: linear-gradient(180deg, #2a475e, #171a21);
  border-color: #3d6c8d;
  color: #e6f2ff;
  cursor: default;
}
.btn-ghost { border-color: var(--gold); color: var(--ink); background: rgba(8, 7, 10, .4); }
.btn-ghost:hover { background: rgba(201, 163, 91, .15); transform: translateY(-1px); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: var(--ember-hot);
  animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}
.stats div { padding: 1.6rem 1rem; text-align: center; border-left: 1px solid rgba(110, 90, 52, .5); }
.stats div:first-child { border-left: 0; }
.stats b {
  display: block;
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--ember-hot);
  line-height: 1.1;
}
.stats span { font-size: .95rem; color: var(--ink-dim); }

/* ---------- Main ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.gameplay { padding-top: clamp(4rem, 9vw, 6rem); }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.reel figcaption { padding: .75rem .25rem .25rem; font-size: .95rem; color: var(--ink-dim); }
.reel figcaption b { display: block; font-family: var(--head-font); font-weight: 600; letter-spacing: .06em; color: var(--ember-hot); margin-bottom: .2rem; }
.loot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.loot-pair img { image-rendering: auto; }

.intro { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.intro p {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.5;
}

.feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin: 0 0 clamp(4rem, 9vw, 7rem);
}
.feature.flip { grid-template-columns: 1fr 1.35fr; }
.feature.flip .frame { order: 2; }
.frame {
  margin: 0;
  position: relative;
  border: 1px solid var(--gold-dim);
  padding: 6px;
  background: var(--panel);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px #000;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
}
.frame::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }
.feature h2, .section-head h2 {
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: .02em;
}
.feature-text p { color: var(--ink-dim); margin: 0 0 1rem; }
.feature-text .eyebrow { color: var(--ember); font-size: .9rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0 0; }
.tags li {
  font-size: .85rem;
  padding: .3rem .7rem;
  border: 1px solid var(--gold-dim);
  background: rgba(201, 163, 91, .06);
}

.section-head { text-align: center; margin-bottom: 2.5rem; }

/* ---------- Acts ---------- */
.acts { padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 9vw, 7rem); }
.act-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.act-grid li { background: var(--panel); border: 1px solid var(--gold-dim); padding: 0 0 1.25rem; position: relative; }
.act-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--gold-dim); image-rendering: auto; }
.act-grid .act-num {
  position: absolute;
  top: .5rem;
  left: .6rem;
  margin: 0;
  font-family: var(--head-font);
  font-weight: 800;
  font-size: 1.1rem;
  text-shadow: 0 2px 6px #000, 0 0 2px #000;
}
.act-grid h3 {
  font-family: var(--head-font);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .06em;
  margin: 1rem 1.1rem .4rem;
  color: var(--ember-hot);
}
.act-grid li > p:last-child { margin: 0 1.1rem; font-size: .95rem; color: var(--ink-dim); font-style: italic; }
.note { text-align: center; color: var(--ink-faint); font-style: italic; margin-top: 2rem; }

/* ---------- Gallery ---------- */
.media { padding-bottom: clamp(4rem, 9vw, 7rem); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.shot { display: block; border: 1px solid var(--gold-dim); overflow: hidden; background: #000; }
.shot.big { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.04); }

.lightbox { border: 1px solid var(--gold); padding: 0; background: #000; max-width: min(96vw, 1600px); }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img { width: 100%; }
.lightbox .close {
  position: absolute;
  top: .4rem;
  right: .6rem;
  background: rgba(0, 0, 0, .6);
  border: 1px solid var(--gold-dim);
  color: var(--ink);
  font-size: 1.4rem;
  width: 2.2rem;
  height: 2.2rem;
  cursor: pointer;
}

/* ---------- Final band, footer ---------- */
.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 16px;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255, 122, 47, .22), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--gold-dim);
}
.final-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: .45;
  image-rendering: auto;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 45% 55% at 50% 50%, rgba(8, 7, 10, .85), rgba(8, 7, 10, .25));
}
.final p { color: var(--ink-dim); letter-spacing: .1em; margin: .75rem 0 2rem; }
footer { text-align: center; padding: 2rem 16px 2.5rem; color: var(--ink-faint); font-size: .9rem; border-top: 1px solid #1d1714; }
footer p { margin: .25rem 0; }
footer .small { font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .reel { grid-template-columns: 1fr; }
  .feature.flip .frame { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid rgba(110, 90, 52, .5); }
}
@media (max-width: 640px) {
  .links { display: none; }
  .hero-art { object-position: 79% 50%; }
  .topbar { gap: 1rem; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 5%, rgba(8, 7, 10, .55) 60%, rgba(8, 7, 10, .35)); }
  .act-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot.big { grid-column: span 2; grid-row: auto; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
  .scroll-cue span { animation: none; }
}
