* {
  box-sizing: border-box;
}

:root {
  --ink: #06110a;
  --deep: #071b0f;
  --forest: #0f3d20;
  --forest-2: #1c6b32;
  --leaf: #6ad03a;
  --acid: #b7ff5a;
  --parchment: #e5d2a2;
  --parchment-2: #cbb47a;
  --gold: #f1b72b;
  --red: #d92e27;
  --mist: #dce8d8;
  --line: #183a24;
  --black: #020603;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mist);
  background:
    radial-gradient(circle at 10% 20%, rgba(38, 120, 53, .14), transparent 25%),
    radial-gradient(circle at 88% 9%, rgba(119, 180, 61, .08), transparent 18%),
    var(--ink);
  font-family: "Courier New", Courier, monospace;
  overflow-x: hidden;
  image-rendering: pixelated;
}

::selection {
  background: var(--acid);
  color: var(--ink);
}

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

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .12;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.05) 0,
    rgba(255,255,255,.05) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
}

#leaf-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.leaf {
  position: absolute;
  top: -30px;
  font-size: 16px;
  opacity: .26;
  animation: leafFall linear infinite;
}

@keyframes leafFall {
  0% { transform: translate3d(0,-20px,0) rotate(0deg); }
  100% { transform: translate3d(80px,110vh,0) rotate(540deg); }
}

.topbar {
  height: 74px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: rgba(4, 15, 8, .87);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--forest);
  box-shadow: 0 4px 0 rgba(0,0,0,.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand img,
.footer-brand img {
  width: 34px;
  height: 34px;
  border: 2px solid var(--acid);
  background: #fff;
  box-shadow: 3px 3px 0 var(--black);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 1.4px;
  font-weight: 700;
}

.nav a {
  position: relative;
  color: #adc6b3;
  transition: color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--acid);
  transition: right .2s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a:hover::after {
  right: 0;
}

.mini-btn {
  justify-self: end;
  padding: 11px 14px;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid #dfff9f;
  box-shadow: 4px 4px 0 #000;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.mini-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.hero {
  min-height: calc(100vh - 74px);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 4px solid var(--forest);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    url("assets/sherwood-banner.png") center/cover no-repeat;
  image-rendering: pixelated;
  transform: scale(1.015);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(3,9,4,.86) 0%, rgba(3,9,4,.55) 43%, rgba(3,9,4,.28) 68%, rgba(3,9,4,.60) 100%),
    linear-gradient(0deg, rgba(2,7,3,.88) 0%, transparent 40%, rgba(2,7,3,.4) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 12px 12px;
}

.hero-content {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
  padding: 70px 0 112px;
}

.wanted-card {
  position: relative;
  padding: 18px 18px 21px;
  color: #24190c;
  background:
    linear-gradient(rgba(255,255,255,.06), rgba(0,0,0,.05)),
    repeating-linear-gradient(0deg, rgba(63,46,18,.04) 0 1px, transparent 1px 4px),
    var(--parchment);
  border: 4px solid #3d2a11;
  outline: 4px solid rgba(201, 172, 103, .4);
  box-shadow: 12px 12px 0 rgba(0,0,0,.42);
}

.tilt-left {
  transform: rotate(-2deg);
}

.wanted-card::before,
.wanted-card::after {
  content: "✦";
  position: absolute;
  color: #4a3417;
  font-size: 18px;
}

.wanted-card::before {
  top: 8px;
  left: 10px;
}

.wanted-card::after {
  top: 8px;
  right: 10px;
}

.wanted-kicker,
.wanted-name,
.wanted-small {
  text-align: center;
  font-weight: 900;
}

.wanted-kicker {
  font-size: 13px;
  letter-spacing: 2px;
}

.wanted-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 14px 0 12px;
  border: 3px solid #4a3417;
  background: #fff;
  filter: sepia(.08) contrast(1.05);
}

.wanted-name {
  font-size: 21px;
  line-height: 1;
}

.wanted-small {
  margin-top: 9px;
  font-size: 9px;
  opacity: .7;
  letter-spacing: .8px;
}

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

.eyebrow,
.section-tag {
  display: inline-block;
  padding: 7px 10px;
  background: var(--forest);
  border-left: 5px solid var(--acid);
  color: #d8efde;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.hero h1 {
  margin: 16px 0 3px;
  font-size: clamp(72px, 11vw, 154px);
  line-height: .72;
  letter-spacing: -8px;
  text-transform: uppercase;
  text-shadow: 8px 8px 0 rgba(0,0,0,.5);
}

.hero h1 span {
  display: block;
}

.hero h1 .ghost {
  color: transparent;
  -webkit-text-stroke: 3px #e9f5ea;
  text-stroke: 3px #e9f5ea;
  opacity: .9;
}

.hero h1 .solid {
  color: var(--acid);
}

.ticker {
  display: inline-block;
  margin-top: 25px;
  padding: 9px 12px;
  background: var(--red);
  color: white;
  border: 2px solid #ff8a83;
  box-shadow: 5px 5px 0 #000;
  font-size: clamp(18px, 2.2vw, 31px);
  font-weight: 900;
  letter-spacing: 1px;
  transform: rotate(-1deg);
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #d8e4d8;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.cta {
  min-width: 230px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border: 3px solid;
  box-shadow: 6px 6px 0 #000;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.cta:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #000;
}

.cta.primary {
  background: var(--acid);
  color: var(--ink);
  border-color: #ddffa8;
}

.cta.secondary {
  background: rgba(5,18,9,.86);
  color: #e8f5ea;
  border-color: #6aa17a;
}

.cta-icon {
  font-size: 25px;
}

.cta small {
  display: block;
  margin-bottom: 4px;
  font-size: 8px;
  letter-spacing: 1.3px;
  opacity: .65;
}

.forest-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-top: 3px solid var(--acid);
  border-bottom: 3px solid var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.forest-ticker-track {
  width: max-content;
  display: flex;
  gap: 58px;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  animation: tickerMove 23s linear infinite;
}

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

.section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 66px;
  align-items: center;
  margin-top: 34px;
}

.story h2,
.roadmap h2,
.gates h2,
.finale h2 {
  margin: 0;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: .91;
  letter-spacing: -5px;
  color: #ecf7ed;
  text-transform: uppercase;
}

.story h2 span {
  color: var(--leaf);
}

.narrative {
  max-width: 670px;
  margin-top: 30px;
}

.narrative p {
  color: #aabdaf;
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.narrative p:first-child::first-letter {
  float: left;
  margin: 5px 10px 0 0;
  padding: 6px 10px 4px;
  color: var(--ink);
  background: var(--acid);
  border: 2px solid #dfff9b;
  box-shadow: 3px 3px 0 #000;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.motto-box {
  margin-top: 34px;
  border: 2px dashed #526b59;
  padding: 17px 20px;
  background: rgba(12,40,22,.55);
}

.motto-label {
  color: var(--leaf);
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 900;
  margin-bottom: 7px;
}

.motto {
  color: #e3ede4;
  font-size: 13px;
  font-weight: 900;
}

.scene-window {
  background: #061009;
  border: 4px solid var(--forest-2);
  box-shadow: 12px 12px 0 #020503;
  transform: rotate(1deg);
  overflow: hidden;
}

.window-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 3px solid var(--forest-2);
  background: #0a1d10;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
}

.blink {
  color: #72ff79;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: .25; }
}

.scene-window img {
  width: 100%;
  display: block;
}

.scene-caption {
  display: flex;
  justify-content: space-between;
  margin: 16px 8px 0;
  font-size: 10px;
  color: #799181;
}

.scene-caption strong {
  color: var(--acid);
}

.roadmap {
  position: relative;
}

.roadmap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(70,133,55,.13), transparent 70%);
  pointer-events: none;
}

.roadmap-head {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 70px;
  align-items: end;
  margin-top: 28px;
}

.roadmap-head p,
.gates-head p {
  margin: 0 0 8px;
  color: #9cb0a2;
  line-height: 1.75;
  font-size: 14px;
}

.quest-map {
  position: relative;
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quest-map::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 54px;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--leaf) 0 18px,
    transparent 18px 28px
  );
  opacity: .45;
}

.quest-card {
  position: relative;
  z-index: 2;
  min-height: 315px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(23,72,38,.96), rgba(8,29,15,.96));
  border: 3px solid #2d6840;
  box-shadow: 8px 8px 0 #020503;
  transition: transform .18s ease, border-color .18s ease;
}

.quest-card:nth-child(even) {
  margin-top: 70px;
}

.quest-card:hover {
  transform: translateY(-7px);
  border-color: var(--acid);
}

.quest-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  background: var(--ink);
  border: 3px solid var(--leaf);
  box-shadow: 5px 5px 0 #000;
  font-size: 30px;
}

.quest-title {
  color: var(--acid);
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 14px;
}

.quest-text {
  color: #a7b9ab;
  font-size: 13px;
  line-height: 1.7;
}

.quest-stamp {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(182,255,90,.22);
  font-size: 34px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.chart-shell {
  margin-top: 34px;
  border: 4px solid #2a6b3c;
  background: #020503;
  box-shadow: 12px 12px 0 #000;
  overflow: hidden;
}

.chart-top {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #0c2614;
  border-bottom: 3px solid #2a6b3c;
  font-size: 10px;
  letter-spacing: 1px;
}

.terminal-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--acid);
  box-shadow: 0 0 12px var(--acid);
}

.chart-status {
  color: var(--acid);
  font-weight: 900;
}

#dex-frame {
  width: 100%;
  height: min(72vh, 760px);
  min-height: 560px;
  border: 0;
  display: block;
  background: #0b0f0b;
}

.gates-head {
  display: grid;
  grid-template-columns: 1fr 210px;
  align-items: center;
  gap: 30px;
  margin-top: 28px;
}

.crest {
  justify-self: end;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--parchment);
  border: 5px solid #6c4b1f;
  outline: 6px solid rgba(226,199,126,.2);
  box-shadow: 10px 10px 0 #000;
  overflow: hidden;
}

.crest img {
  width: 120%;
  transform: translateY(8px);
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.gate-card {
  min-height: 290px;
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 3px solid #405846;
  background: #0b2413;
  box-shadow: 9px 9px 0 #000;
  transition: transform .18s ease, border-color .18s ease;
}

.gate-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -55px;
  top: -55px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.02);
}

.gate-card:hover {
  transform: translate(-4px, -4px);
  border-color: var(--acid);
}

.gate-number {
  font-size: 10px;
  color: #758c7a;
  letter-spacing: 1px;
}

.gate-symbol {
  margin-top: 30px;
  font-size: 45px;
}

.gate-title {
  margin-top: 24px;
  color: var(--acid);
  font-size: 23px;
  font-weight: 900;
}

.gate-copy {
  margin-top: 7px;
  color: #8da294;
  font-size: 11px;
  letter-spacing: 1.4px;
}

.gate-arrow {
  position: absolute;
  right: 22px;
  bottom: 17px;
  font-size: 30px;
  color: #5f7c67;
}

.finale {
  min-height: 610px;
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1fr .65fr;
  align-items: end;
  gap: 40px;
  overflow: hidden;
  padding: 70px max(24px, calc((100vw - 1240px)/2));
  background:
    linear-gradient(180deg, rgba(3,14,7,.35), rgba(2,8,4,.93)),
    url("assets/sherwood-banner.png") center/cover no-repeat;
  border-top: 4px solid #214b2c;
}

.finale::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 52% 35%, transparent, rgba(0,0,0,.52) 68%);
  pointer-events: none;
}

.finale-character,
.finale-copy,
.castle-silhouette {
  position: relative;
  z-index: 2;
}

.finale-character {
  width: min(360px, 90%);
  filter: drop-shadow(12px 12px 0 rgba(0,0,0,.55));
}

.finale-copy {
  padding-bottom: 40px;
}

.finale-copy p {
  display: inline-block;
  margin: 25px 0 0;
  padding: 9px 12px;
  background: var(--red);
  border: 2px solid #ff7770;
  box-shadow: 5px 5px 0 #000;
  font-size: 20px;
  font-weight: 900;
}

.castle-silhouette {
  justify-self: end;
  align-self: center;
  color: rgba(0,0,0,.58);
  font-size: 230px;
  line-height: 1;
  text-shadow: 8px 8px 0 rgba(15,59,29,.35);
}

footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 24px max(24px, calc((100vw - 1240px)/2));
  background: #020603;
  border-top: 3px solid #173a22;
  color: #64766a;
  font-size: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b9c9bd;
  font-weight: 900;
  letter-spacing: 1px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

footer p {
  text-align: center;
}

.footer-links {
  justify-self: end;
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #8ca793;
  font-weight: 900;
}

.footer-links a:hover {
  color: var(--acid);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero-content {
    grid-template-columns: 260px 1fr;
    gap: 28px;
  }

  .hero h1 {
    letter-spacing: -5px;
  }

  .story-grid,
  .roadmap-head {
    grid-template-columns: 1fr;
  }

  .story-copy {
    order: 1;
  }

  .pixel-scene {
    order: 2;
  }

  .quest-map {
    grid-template-columns: repeat(2, 1fr);
  }

  .quest-card:nth-child(even) {
    margin-top: 30px;
  }

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

  .gate-card {
    min-height: 220px;
  }

  .finale {
    grid-template-columns: .8fr 1fr;
  }

  .castle-silhouette {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 64px;
    padding: 0 15px;
  }

  .brand span {
    font-size: 12px;
  }

  .mini-btn {
    font-size: 9px;
    padding: 9px 10px;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    width: min(100% - 30px, 600px);
    grid-template-columns: 1fr;
    padding-top: 45px;
  }

  .wanted-card {
    width: 220px;
    justify-self: center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(66px, 23vw, 108px);
    letter-spacing: -6px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .section {
    width: min(100% - 30px, 680px);
    padding: 85px 0;
  }

  .story h2,
  .roadmap h2,
  .gates h2,
  .finale h2 {
    font-size: clamp(45px, 15vw, 74px);
    letter-spacing: -3px;
  }

  .story-grid {
    gap: 40px;
  }

  .roadmap-head {
    gap: 26px;
  }

  .quest-map {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 46px;
  }

  .quest-map::before {
    display: none;
  }

  .quest-card,
  .quest-card:nth-child(even) {
    margin-top: 0;
    min-height: auto;
  }

  #dex-frame {
    min-height: 520px;
  }

  .gates-head {
    grid-template-columns: 1fr;
  }

  .crest {
    justify-self: start;
    width: 125px;
    height: 125px;
  }

  .finale {
    min-height: 720px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 70px;
  }

  .finale-character {
    width: 270px;
    align-self: end;
  }

  .finale-copy {
    align-self: start;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-links {
    justify-self: center;
  }
}