:root {
  color-scheme: dark;
  --bg: #111816;
  --bg-soft: #18231f;
  --panel: #223128;
  --panel-2: #2a3b30;
  --text: #edf3e8;
  --muted: #bac7b4;
  --line: #3e5447;
  --grass: #5d9d46;
  --grass-dark: #397037;
  --dirt: #7a4b31;
  --stone: #8b948f;
  --gold: #e7b94d;
  --rare: #70a8ff;
  --epic: #b87cff;
  --danger: #d96557;
  --radius: 8px;
  --shadow: 0 20px 60px rgb(0 0 0 / 32%);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgb(11 16 14 / 70%), var(--bg) 520px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 3%) 0 1px, transparent 1px 64px),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  min-height: 640px;
  background:
    linear-gradient(180deg, rgb(17 24 22 / 24%), rgb(17 24 22 / 92%)),
    radial-gradient(circle at 20% 15%, rgb(93 157 70 / 24%), transparent 32%),
    linear-gradient(135deg, #273f34, #121a17 58%, #0d1311);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 112px;
  background:
    linear-gradient(90deg, transparent 0 5%, #5d9d46 5% 14%, transparent 14% 18%, #397037 18% 31%, transparent 31% 100%),
    linear-gradient(180deg, transparent 0 28px, #7a4b31 28px 100%);
  background-size: 180px 112px;
  opacity: .35;
  image-rendering: pixelated;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  background:
    linear-gradient(180deg, #6fb950 0 45%, #74492f 45% 100%);
  border: 3px solid #19231d;
  box-shadow: inset -4px -4px 0 rgb(0 0 0 / 18%);
  image-rendering: pixelated;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-toggle,
.button {
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(22 31 27 / 78%);
  color: var(--text);
  padding: 10px 13px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.nav-links a:hover,
.button:hover {
  border-color: var(--grass);
  background: rgb(57 112 55 / 32%);
}

.nav-toggle {
  display: none;
  cursor: pointer;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  align-items: center;
  gap: 56px;
  padding: 0 0 72px;
}

.hero-copy {
  grid-column: 1;
  max-width: 680px;
}

.hero-copy h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: .95;
  margin: 0 0 22px;
  letter-spacing: 0;
  text-shadow: 0 6px 0 rgb(0 0 0 / 22%);
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #9bd47f;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
}

.server-address {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px;
  background: rgb(6 10 8 / 72%);
  border: 1px solid #83c965;
  border-radius: var(--radius);
  box-shadow: inset 0 4px 0 rgb(255 255 255 / 5%);
}

.server-address span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.server-address code {
  color: #edf3e8;
  font-size: 20px;
  font-weight: 900;
  padding: 4px 8px;
}

.server-address button {
  min-height: 34px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 6px;
  background: #4d8a38;
  color: #071007;
  cursor: pointer;
  font-weight: 900;
  padding: 6px 10px;
}

.server-address button:hover {
  background: #6fb950;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.button.primary {
  background: #4d8a38;
  border-color: #83c965;
  color: #071007;
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 18%);
}

.button.secondary {
  background: rgb(255 255 255 / 8%);
}

.hero-art {
  grid-column: 2;
  min-height: 280px;
  position: relative;
  filter: drop-shadow(var(--shadow));
}

.block {
  position: absolute;
  width: 104px;
  height: 104px;
  border: 5px solid rgb(10 14 12 / 75%);
  image-rendering: pixelated;
  box-shadow: inset -14px -14px 0 rgb(0 0 0 / 16%), inset 12px 12px 0 rgb(255 255 255 / 12%);
}

.block.grass {
  left: 50px;
  top: 24px;
  background: linear-gradient(180deg, #6eb751 0 34%, #7a4b31 34% 100%);
}

.block.dirt {
  left: 156px;
  top: 126px;
  background:
    linear-gradient(45deg, transparent 0 45%, rgb(255 255 255 / 12%) 45% 50%, transparent 50% 100%),
    #7a4b31;
}

.block.stone {
  left: 258px;
  top: 62px;
  background: #8b948f;
}

.block.ore {
  left: 94px;
  top: 242px;
  background:
    radial-gradient(circle at 32px 36px, #70a8ff 0 10px, transparent 11px),
    radial-gradient(circle at 82px 82px, #70a8ff 0 12px, transparent 13px),
    #68736e;
}

.block.wood {
  left: 304px;
  top: 226px;
  background: repeating-linear-gradient(90deg, #8a5a36 0 18px, #684124 18px 34px);
}

.block.leaf {
  left: 200px;
  top: 0;
  width: 92px;
  height: 92px;
  background: #397037;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 32px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

p {
  margin: 0;
}

.intro-grid,
.class-grid,
.skill-grid,
.currency-grid,
.command-grid,
.land-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.class-grid,
.currency-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-grid article,
.class-card,
.skill-panel,
.currency-grid article,
.shop-list article,
.command-grid article,
.land-notes article {
  background: linear-gradient(180deg, var(--panel), #1a2720);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: inset 0 4px 0 rgb(255 255 255 / 4%);
}

.intro-grid p,
.class-card p,
.skill-panel p,
.currency-grid p,
.shop-list p,
.land-guide p,
.split p {
  color: var(--muted);
}

.class-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.class-card dl {
  margin: auto 0 0;
  display: grid;
  gap: 8px;
}

.class-card dl div {
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding-top: 8px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.class-card.warrior { border-top: 4px solid #d96557; }
.class-card.mage { border-top: 4px solid #b87cff; }
.class-card.ranger { border-top: 4px solid #70a8ff; }
.class-card.rogue { border-top: 4px solid #e7b94d; }

.skill-panel.warrior { border-top: 4px solid #d96557; }
.skill-panel.mage { border-top: 4px solid #b87cff; }
.skill-panel.ranger { border-top: 4px solid #70a8ff; }
.skill-panel.rogue { border-top: 4px solid #e7b94d; }

.skill-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.skill-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #4d8a38;
  border: 3px solid #83c965;
  box-shadow: inset -5px -5px 0 rgb(0 0 0 / 18%);
  color: #071007;
  font-weight: 900;
}

.skill-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding-top: 10px;
}

.skill-list span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  background: rgb(6 10 8 / 78%);
  border: 1px solid rgb(255 255 255 / 14%);
  color: #9bd47f;
  font-weight: 900;
}

.skill-list strong {
  display: block;
  margin-bottom: 2px;
}

.class-icon {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 0 rgb(0 0 0 / 22%));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.split.reverse > div:first-child {
  order: 2;
}

.tier-board,
.shop-list {
  display: grid;
  gap: 10px;
}

.tier-board div {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.tier-board span {
  font-weight: 900;
  color: #9bd47f;
}

.tier-board small {
  color: var(--muted);
  text-align: right;
}

.currency-grid article {
  min-height: 220px;
}

.currency {
  display: block;
  width: 44px;
  height: 44px;
  border: 4px solid rgb(0 0 0 / 40%);
  margin-bottom: 18px;
  transform: rotate(45deg);
  box-shadow: inset -5px -5px 0 rgb(0 0 0 / 18%);
}

.currency.gold { background: var(--gold); }
.currency.common { background: #e7ece4; }
.currency.rare { background: var(--rare); }
.currency.epic { background: var(--epic); }

.map-section {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.map-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.map-heading p:not(.eyebrow) {
  color: var(--muted);
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  max-height: 760px;
  background: #071007;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 18px;
  background: transparent;
  text-decoration: none;
}

.map-cover span {
  background: #4d8a38;
  border: 1px solid #83c965;
  border-radius: 6px;
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 18%);
  color: #071007;
  font-weight: 800;
  padding: 10px 14px;
}

.map-cover:hover span {
  background: #6fb950;
}

.rules {
  background:
    linear-gradient(180deg, rgb(34 49 40 / 86%), rgb(26 39 32 / 86%)),
    repeating-linear-gradient(45deg, rgb(255 255 255 / 5%) 0 12px, transparent 12px 24px);
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  background: rgb(15 22 19 / 58%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  padding: 16px;
  font-weight: 700;
}

.command-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.command-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.command-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.command-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #4d8a38;
  border: 2px solid #83c965;
  color: #071007;
  font-weight: 900;
}

.land-notes {
  margin-top: 16px;
}

code {
  background: rgb(6 10 8 / 78%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 4px;
  color: #c8f0a8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  overflow-wrap: anywhere;
  padding: 2px 5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-height: 180px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #4d8a38;
  border: 2px solid #83c965;
  color: #071007;
  font-weight: 900;
  margin-bottom: 14px;
}

.steps p {
  color: var(--muted);
  font-weight: 700;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-art {
    grid-column: auto;
  }

  .hero-art {
    min-height: 320px;
    order: -1;
  }

  .split.reverse > div:first-child {
    order: 0;
  }

  .intro-grid,
  .class-grid,
  .skill-grid,
  .currency-grid,
  .command-grid,
  .land-notes,
  .rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-heading {
    align-items: start;
    flex-direction: column;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    flex-direction: column;
    align-items: stretch;
    background: rgb(14 20 17 / 96%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-art {
    transform: scale(.8);
    transform-origin: left center;
    min-height: 260px;
  }

  .intro-grid,
  .class-grid,
  .skill-grid,
  .currency-grid,
  .command-grid,
  .land-notes,
  .rule-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .tier-board div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tier-board small {
    text-align: left;
  }

  .map-frame {
    aspect-ratio: 4 / 5;
    min-height: 520px;
  }

  .server-address {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}
