:root {
  color-scheme: light;
  --ink: #241306;
  --text: #3b2412;
  --muted: #6b5131;
  --cream: #fff3c7;
  --paper: #ead59f;
  --honey: #ffc247;
  --honey-light: #ffe6a7;
  --orange: #d96b28;
  --red: #c43d32;
  --green: #2f8b4f;
  --grass: #8fbd64;
  --river: #12a7d8;
  --sky: #8fd0ff;
  --brown: #6b3d21;
  --deep: #180d07;
  --panel: rgba(24, 13, 7, 0.9);
  --line: rgba(107, 61, 33, 0.24);
  --shadow: 0 24px 60px rgba(79, 43, 15, 0.2);
  --font-title: "Bungee", system-ui, sans-serif;
  --font-ui: "Chakra Petch", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px) 0 0 / 100% 38px,
    linear-gradient(90deg, rgba(107, 61, 33, 0.07) 2px, transparent 2px) 0 0 / 38px 100%,
    linear-gradient(180deg, #8fd0ff 0%, #ffd5a4 24%, #f2d17a 44%, #ead59f 100%);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 12%, rgba(18, 167, 216, 0.34), transparent 28rem),
    radial-gradient(circle at 86% 7%, rgba(196, 61, 50, 0.2), transparent 24rem),
    radial-gradient(circle at 72% 76%, rgba(47, 139, 79, 0.22), transparent 30rem);
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-title);
  letter-spacing: 0;
}

h1 {
  color: var(--honey);
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.92;
  text-shadow: 5px 5px 0 var(--brown), 8px 8px 0 rgba(36, 19, 6, 0.3);
  -webkit-text-stroke: 1px #241306;
}

h2 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
}

h3 {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.35rem;
  line-height: 1.14;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.site-header {
  position: fixed;
  inset: 16px 22px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 8px 12px 8px 16px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: rgba(255, 243, 199, 0.88);
  box-shadow: 0 8px 0 rgba(107, 61, 33, 0.32), var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 243, 199, 0.97);
  transform: translateY(-3px);
}

.brand img {
  width: clamp(118px, 12vw, 170px);
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--brown);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a,
.header-cta,
.btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.header-cta {
  padding: 0 18px;
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--brown);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  min-height: 100vh;
  padding: 112px clamp(20px, 5vw, 76px) 62px;
}

.hero-media {
  position: relative;
  min-height: clamp(430px, 52vw, 720px);
  border: 5px solid var(--deep);
  border-radius: 8px;
  background: var(--deep);
  box-shadow: 0 12px 0 var(--brown), var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.hero-bg {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  image-rendering: auto;
}

.hero-logo {
  position: absolute;
  top: 6%;
  left: 50%;
  width: min(48vw, 520px);
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 0 rgba(36, 19, 6, 0.22));
}

.hero-hud,
.dialogue-box {
  position: absolute;
  z-index: 5;
  border: 3px solid var(--honey);
  border-radius: 8px;
  background: var(--panel);
  color: var(--cream);
  box-shadow: 0 8px 0 rgba(24, 13, 7, 0.28);
}

.hero-hud {
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.hero-hud span {
  color: var(--honey-light);
  font-size: 0.78rem;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy p {
  margin-top: 24px;
  color: #4d3218;
  font-size: 1.22rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--red);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 6px;
  border-radius: 8px;
  background: var(--honey);
  border: 2px solid var(--brown);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  padding: 0 22px;
  box-shadow: 0 6px 0 var(--brown);
}

.btn.primary {
  background: var(--honey);
  color: var(--ink);
}

.btn.secondary {
  background: var(--cream);
  color: var(--brown);
}

.btn.light {
  background: var(--cream);
}

.section,
.mission-section,
.inventory-section,
.world-section,
.cta-section {
  padding: clamp(70px, 9vw, 132px) clamp(20px, 5vw, 76px);
  scroll-margin-top: 110px;
}

.section-heading {
  max-width: 980px;
}

.section-heading p {
  max-width: 780px;
  margin-top: 18px;
}

.journey-section {
  background: #fff7dc;
}

.game-frame {
  position: relative;
  min-height: clamp(430px, 50vw, 720px);
  margin-top: 42px;
  border: 5px solid var(--deep);
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 12px 0 var(--brown), var(--shadow);
  overflow: hidden;
}

.game-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 2px, transparent 2px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 2px, transparent 2px) 0 0 / 48px 100%,
    radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.28));
}

.plaza {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.church,
.seu-ze,
.player {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 16px 8px rgba(0, 0, 0, 0.28));
}

.church {
  left: 50%;
  bottom: 23%;
  width: min(42vw, 500px);
  transform: translateX(-50%);
}

.seu-ze {
  left: 12%;
  bottom: 14%;
  width: clamp(82px, 9vw, 132px);
}

.player {
  bottom: 10%;
  width: clamp(130px, 13vw, 210px);
  animation: breathe 2.4s ease-in-out infinite;
}

.player-one {
  left: 36%;
}

.player-two {
  right: 27%;
  animation-delay: 0.28s;
}

.dialogue-box {
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
}

.dialogue-box strong {
  color: var(--honey);
  font-family: var(--font-ui);
  text-transform: uppercase;
}

.dialogue-box span {
  color: var(--cream);
  font-weight: 700;
}

.mission-section {
  background:
    linear-gradient(180deg, rgba(255, 243, 199, 0.82), rgba(234, 213, 159, 0.96)),
    var(--paper);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.mission-card {
  border: 4px solid var(--brown);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 9px 0 rgba(107, 61, 33, 0.34), var(--shadow);
  overflow: hidden;
}

.mission-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mission-card div {
  padding: 20px;
}

.mission-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border: 3px solid var(--brown);
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
}

.mission-card p {
  margin-top: 10px;
}

.inventory-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.52fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #173b28;
}

.inventory-section h2,
.inventory-section p {
  color: var(--cream);
}

.inventory-section .eyebrow {
  color: var(--honey);
}

.inventory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 4px solid var(--honey);
  border-radius: 8px;
  background: rgba(24, 13, 7, 0.82);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.24), var(--shadow);
}

.slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 230, 167, 0.42);
  border-radius: 8px;
  background: #fff7dc;
}

.slot.active {
  background: var(--honey-light);
  box-shadow: 0 0 0 4px rgba(255, 194, 71, 0.24);
}

.slot img {
  width: 78%;
  max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 10px 5px rgba(36, 19, 6, 0.25));
}

.world-section {
  background: #fff7dc;
}

.world-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.world-gallery figure {
  position: relative;
  min-height: 300px;
  margin: 0;
  border: 4px solid var(--brown);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 9px 0 rgba(107, 61, 33, 0.28), var(--shadow);
  overflow: hidden;
}

.world-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.world-gallery figure:hover img {
  transform: scale(1.04);
}

.world-gallery figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border: 3px solid var(--honey);
  border-radius: 8px;
  background: rgba(24, 13, 7, 0.86);
  color: var(--cream);
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background:
    linear-gradient(135deg, rgba(196, 61, 50, 0.95), rgba(217, 107, 40, 0.9)),
    var(--red);
}

.cta-section h2,
.cta-section p,
.cta-section .eyebrow {
  color: var(--cream);
}

.cta-section div {
  max-width: 900px;
}

.cta-section p {
  margin-top: 18px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .hero,
  .inventory-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    inset: 10px 10px auto;
    min-height: 58px;
    padding: 6px 8px 6px 10px;
  }

  .brand img {
    width: 116px;
    height: 44px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: auto;
    padding-top: 94px;
  }

  .hero-media,
  .game-frame {
    min-height: 420px;
  }

  .hero-logo {
    width: min(76vw, 430px);
  }

  .hero-hud {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .church {
    bottom: 31%;
    width: min(86vw, 390px);
  }

  .seu-ze {
    left: 7%;
    bottom: 18%;
  }

  .player {
    width: 126px;
  }

  .player-one {
    left: 30%;
  }

  .player-two {
    right: 4%;
  }

  .dialogue-box {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
  }

  .world-gallery,
  .inventory {
    grid-template-columns: 1fr;
  }

  .world-gallery figure {
    min-height: 230px;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}
