:root {
  --bg: #1f170e;
  --bg-soft: #2b2014;
  --paper: #f6ebd1;
  --paper-deep: #ead9b3;
  --ink: #24190e;
  --ink-muted: #5d4628;
  --gold: #f0be59;
  --gold-deep: #c9861f;
  --accent: #ff6a00;
  --accent-hover: #ff852e;
  --edge: #4e3418;
  --border: #b8965c;
  --radius: 14px;
  --max-w: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

/* Top bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(31, 23, 14, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(240, 190, 89, 0.28);
  color: #f9eed4;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #ead9b3;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--gold);
}

.nav__cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8124, var(--accent));
  color: #1c1106 !important;
  font-weight: 700 !important;
  border: 1px solid #2b1806;
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 78% 20%, rgba(240, 190, 89, 0.18), transparent 65%),
    linear-gradient(180deg, #1f170e 0%, #312315 100%);
  color: #faefd6;
  padding: 48px 0 56px;
  border-bottom: 3px solid #6b4922;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(240, 190, 89, 0.14);
  border: 1px solid rgba(240, 190, 89, 0.38);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff6e0;
}

.hero__lead {
  margin: 0 0 26px;
  font-size: 17px;
  color: #dfd0ae;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
  border: 2px solid #1c1106;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(180deg, #ff862b, var(--accent));
  color: #1c1106;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.28);
}

.btn--secondary {
  background: linear-gradient(180deg, #f8d47b, var(--gold-deep));
  color: #1c1106;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f9eed4;
  border-color: rgba(240, 190, 89, 0.45);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: #cbb88e;
}

/* Framed game art preview */
.stage-card {
  position: relative;
  aspect-ratio: 480 / 328;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
}

.stage-card__pic {
  position: absolute;
  left: 7.5%;
  top: 14%;
  width: 86%;
  height: 70%;
  object-fit: cover;
}

.stage-card__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 52px 0;
}

.section--alt {
  background: var(--paper-deep);
  border-top: 1px solid #d4bc8c;
  border-bottom: 1px solid #d4bc8c;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.section__head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--ink);
}

.section__head p {
  margin: 0;
  color: var(--ink-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: rgba(255, 251, 240, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 3px 10px rgba(62, 42, 16, 0.08);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #36220c;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

/* World showcase */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.loc-shot {
  background: rgba(255, 251, 240, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(62, 42, 16, 0.1);
}

.loc-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.loc-shot__cap {
  padding: 12px 14px;
}

.loc-shot__cap strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.loc-shot__cap span {
  font-size: 13px;
  color: var(--ink-muted);
}

/* Download / Play CTA panel */
.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.platform-box {
  background: #fffaf0;
  border: 2px solid #8a6432;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.platform-box h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.platform-box p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

.platform-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* Legal / subpages */
.doc-page {
  padding: 36px 0 60px;
}

.doc-card {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(255, 251, 240, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 0 4px 16px rgba(62, 42, 16, 0.08);
}

.doc-card h1 {
  margin: 0 0 18px;
  font-size: 26px;
  color: #2b1a09;
}

.doc-card h2 {
  margin: 22px 0 8px;
  font-size: 18px;
  color: #4f3112;
  border-bottom: 1px solid #dfcaa1;
  padding-bottom: 4px;
}

.doc-card h3 {
  margin: 16px 0 6px;
  font-size: 16px;
}

.doc-card p,
.doc-card li {
  font-size: 15px;
  color: #322312;
}

.doc-card a {
  color: #8a4b08;
  text-decoration: underline;
}

.doc-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6b4317;
  text-decoration: none;
}

.doc-back:hover {
  text-decoration: underline;
}

.icon-inline {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 6px;
}

/* Footer */
.site-footer {
  background: #1c140c;
  color: #cbb88e;
  border-top: 3px solid #6b4922;
  padding: 32px 0;
  font-size: 14px;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer__links a {
  color: #ead9b3;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .hero__grid,
  .cards,
  .gallery,
  .platforms {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 34px 0 40px;
  }

  .nav {
    gap: 12px;
  }

  .doc-card {
    padding: 20px 18px;
  }
}

@media (max-width: 540px) {
  .nav a:not(.nav__cta) {
    display: none;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
