/* ─── Reset ───────────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: #e8dcc2;
  background: #0e0703;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

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

/* ─── Background ──────────────────────────────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,7,3,0.75) 0%, rgba(14,7,3,0.55) 40%, rgba(14,7,3,0.85) 100%),
    url('/assets/bg.webp') center/cover no-repeat fixed;
  z-index: -1;
  filter: saturate(0.85) brightness(0.75);
}

/* ─── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  background: rgba(14, 7, 3, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 111, 71, 0.3);
}
.brand {
  font-family: 'MedievalSharp', serif;
  font-size: 1.15rem;
  text-decoration: none;
  color: #f0d796;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: #c9b89a;
  transition: color 0.2s;
  font-weight: 500;
}
.site-nav a:hover { color: #f0d796; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  overflow: hidden;
}
.hero-inner {
  text-align: center;
  max-width: 720px;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: clamp(6px, 2vw, 14px);
  color: #f0d796;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(240, 215, 150, 0.25);
  margin-bottom: 12px;
}
.hero-tagline {
  font-family: 'MedievalSharp', serif;
  font-size: clamp(1.2rem, 3.2vw, 1.75rem);
  color: #d4b988;
  letter-spacing: 2px;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #c9b89a;
  font-style: italic;
  max-width: 520px;
  margin: 0 auto 48px;
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 12px 28px;
  border: 1.5px solid #8b6f47;
  border-radius: 12px;
  background: rgba(26, 15, 10, 0.6);
  color: #e8dcc2;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  font-family: 'Cinzel', serif;
}
.store-badge:not(.disabled):hover {
  transform: translateY(-2px);
  border-color: #f0d796;
  background: rgba(60, 36, 20, 0.7);
}
.store-badge.disabled {
  opacity: 0.8;
  cursor: default;
}
.sb-small {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a69878;
  margin-bottom: 2px;
  white-space: nowrap;
}
.sb-large {
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: #f0d796;
  font-weight: 600;
  white-space: nowrap;
}

/* Floating cards decoration */
.hero-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.fc {
  position: absolute;
  width: 120px;
  height: auto;
  aspect-ratio: 53 / 72;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  opacity: 0.85;
  filter: drop-shadow(0 0 20px rgba(240, 215, 150, 0.15));
}
.fc-1 { top: 12%; left: 6%; transform: rotate(-12deg); width: 100px; }
.fc-2 { top: 22%; right: 8%; transform: rotate(14deg); width: 110px; }
.fc-3 { bottom: 18%; left: 10%; transform: rotate(8deg); width: 115px; }
.fc-4 { bottom: 12%; right: 6%; transform: rotate(-10deg); width: 105px; }

/* ─── Sections ────────────────────────────────────────────────────────────── */
section { padding: 100px 24px; position: relative; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-inner.narrow { max-width: 720px; }

section h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  color: #f0d796;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.section-lede {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
  color: #c9b89a;
}

/* ─── Features Grid ───────────────────────────────────────────────────────── */
.features {
  background: linear-gradient(180deg, transparent 0%, rgba(14, 7, 3, 0.4) 50%, transparent 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: rgba(26, 15, 10, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 111, 71, 0.3);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 215, 150, 0.4);
}
.feature-glyph {
  font-size: 2rem;
  color: #f0d796;
  margin-bottom: 12px;
  font-family: 'MedievalSharp', serif;
}
.feature h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #f0d796;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.feature p {
  font-size: 0.95rem;
  color: #c9b89a;
}

/* ─── How to Play ─────────────────────────────────────────────────────────── */
.how-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.how-steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 80px;
  margin-bottom: 16px;
  background: rgba(26, 15, 10, 0.45);
  border-left: 3px solid #8b6f47;
  border-radius: 0 10px 10px 0;
}
.how-steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(139, 111, 71, 0.25);
  border: 1.5px solid #8b6f47;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0d796;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.how-steps strong {
  display: block;
  color: #f0d796;
  margin-bottom: 4px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}
.how-steps em {
  color: #d4b988;
  font-style: italic;
}

/* ─── About ───────────────────────────────────────────────────────────────── */
.about { text-align: center; }
.about p {
  color: #c9b89a;
  font-size: 1.05rem;
  margin-bottom: 16px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: rgba(14, 7, 3, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(139, 111, 71, 0.3);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand .brand { display: block; font-size: 1.3rem; margin-bottom: 6px; }
.footer-tag { color: #a69878; font-size: 0.88rem; font-style: italic; }
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #c9b89a;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #f0d796; }
.footer-fine {
  flex-basis: 100%;
  text-align: center;
  color: #6b5a44;
  font-size: 0.82rem;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 111, 71, 0.2);
  margin-top: 8px;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 80px 24px; }
  /* Hide the two mid-field cards; keep top-left + bottom-right only */
  .fc-2, .fc-3 { display: none; }
  .fc { opacity: 0.55; }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 20px;
    justify-content: center;
  }
  .site-nav { display: none; }
  .brand { font-size: 1rem; letter-spacing: 2.5px; }

  /* Mobile: keep two decorative cards, smaller, tucked in corners behind content */
  .fc {
    width: 78px;
    opacity: 0.4;
    filter: drop-shadow(0 0 14px rgba(240, 215, 150, 0.1));
  }
  .fc-1 { top: 8%; left: -10px; transform: rotate(-14deg); }
  .fc-4 { bottom: 20%; right: -14px; transform: rotate(12deg); width: 82px; }

  section { padding: 64px 20px; }
  .hero {
    padding: 32px 20px 56px;
    min-height: calc(100vh - 56px);
  }
  .hero-sub { margin-bottom: 36px; }
  .section-lede { margin-bottom: 44px; }

  .store-badges { gap: 12px; flex-direction: column; align-items: center; }
  .store-badge {
    min-width: 260px;
    width: 100%;
    max-width: 300px;
    padding: 12px 18px;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
  }
  .sb-small {
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    margin-bottom: 0;
    line-height: 1;
  }
  .sb-large { font-size: 1rem; line-height: 1; }

  .feature { padding: 26px 22px; }
  .feature h3 { font-size: 1.1rem; }

  .how-steps li {
    padding: 16px 16px 16px 68px;
  }
  .how-steps li::before {
    left: 16px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .about p { font-size: 0.98rem; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 420px) {
  .hero-title { letter-spacing: 3px; }
  .hero-tagline { letter-spacing: 1.5px; }
}
