@font-face {
  font-family: Square Pixel;
  src: url("pixel.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #141912;
  --surface: #1e251a;
  --line: #3d4834;
  --text: #fcf8ec;
  --muted: #c1c9b7;
  --lime: #caff53;
  font-family: system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
p { line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 4; top: 8px; left: 12px; padding: 12px; background: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--ink); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner { min-height: 74px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 20px/1 Square Pixel, ui-monospace, monospace;
  text-decoration: none;
  white-space: nowrap;
}
nav { display: flex; align-items: center; gap: clamp(16px, 3.4vw, 42px); }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .89rem;
  font-weight: 650;
  padding-block: 8px;
  white-space: nowrap;
}
nav a:hover, nav a[aria-current="page"] { color: var(--lime); }

.hero {
  min-height: clamp(550px, 65vw, 650px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15, 22, 11, .84), rgba(15, 22, 11, .44) 34%, transparent 71%),
    linear-gradient(0deg, rgba(15, 22, 11, .48), transparent 40%),
    url("highlands.jpg") center 53% / cover no-repeat;
}
.hero-inner { padding-block: 54px 62px; }
.hero-copy { max-width: 570px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 23px;
  color: var(--lime);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.kicker span { width: 9px; height: 9px; flex: 0 0 9px; background: currentColor; }
h1, h2 { margin: 0; }
h1 {
  font: clamp(2.35rem, 7.5vw, 5rem)/1.02 Square Pixel, ui-monospace, monospace;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}
.hero h1 {
  font-size: clamp(4.25rem, 12vw, 9rem);
  line-height: .87;
  text-shadow: 0 6px #10170e;
}
.hero h1 em, .hero h1 i { color: var(--lime); font-style: normal; }
.hero-copy > p:not(.kicker) { margin: 26px 0 26px; color: var(--text); font-size: 1.05rem; }
.accent { color: var(--lime); }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font: 750 .9rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.button.primary { background: var(--lime); color: #192116; box-shadow: 0 3px #7ea024; }
.button.primary:focus-visible { outline-color: var(--text); }
.button.primary:hover { background: #e0ff9d; }
.button.secondary { background: #172014d9; border-color: #829071; color: var(--text); }
.button.secondary:hover { background: #2c3826; border-color: var(--lime); }

.play-section { padding-block: 48px 58px; }
.play-section h2 { font-size: clamp(1.45rem, 4vw, 2.1rem); letter-spacing: -.04em; }
.play-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 23px; }
.play-grid a {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 19px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}
.play-grid a:hover { border-color: var(--lime); }
.play-grid strong { font-size: 1.13rem; }
.play-grid a > span:last-child { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.tile-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  color: var(--lime);
  background: #333f25;
}

.interior { padding-block: clamp(45px, 8vw, 94px); }
.interior.narrow { max-width: 820px; }
.intro { margin-bottom: 33px; }
.intro > p:last-child, .lost > p:not(.kicker) { color: var(--muted); margin: 17px 0 0; font-size: 1.05rem; }
.landscape { width: 100%; height: clamp(230px, 38vw, 420px); object-fit: cover; object-position: center 53%; border: 1px solid var(--line); }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 35px; margin: 32px 0 24px; }
.details h2, .rule-list h2, .join-card h2 { font-size: 1.22rem; }
.details p, .rule-list p { color: var(--muted); margin: 7px 0 0; }
.rule-list { padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); list-style: none; counter-reset: step; }
.rule-list li { display: flex; align-items: start; gap: 15px; padding-block: 19px; border-bottom: 1px solid var(--line); counter-increment: step; }
.rule-list li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--lime);
  background: #333f25;
  padding: 7px;
  min-width: 34px;
  text-align: center;
  font: 700 .78rem/1.25 ui-monospace, monospace;
}
.rule-list a { color: var(--lime); text-underline-offset: 3px; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(20px, 6vw, 64px); align-items: start; }
.join-steps { margin-bottom: 0; }
.join-card { background: var(--surface); padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-top: 4px solid var(--lime); }
.join-card label { display: block; margin: 24px 0 7px; font-size: .9rem; font-weight: 650; }
.join-card input {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--text);
  border: 1px solid #88917a;
  border-radius: 0;
  font: 1rem/1.2 system-ui, sans-serif;
}
.join-card input::placeholder { color: #a3ad97; }
.join-card .button { margin-top: 16px; width: 100%; }
.error { color: #ffb9a9; font-size: .875rem; margin: 7px 0 0; }
.error:empty, .success:empty { margin: 0; }
.success { color: var(--lime); margin: 18px 0 0; }
.lost .button { margin-top: 24px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 82px; }
.footer-inner .brand { color: var(--text); font-size: 16px; }
.footer-inner p { font-size: .82rem; }

@media (max-width: 650px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: auto; flex-direction: column; align-items: start; gap: 6px; padding-block: 13px 6px; }
  nav { gap: clamp(12px, 5vw, 28px); flex-wrap: wrap; }
  nav a { font-size: .81rem; }
  .hero {
    min-height: 520px;
    background:
      linear-gradient(90deg, rgba(15, 22, 11, .87), rgba(15, 22, 11, .43)),
      linear-gradient(0deg, rgba(15, 22, 11, .48), transparent 35%),
      url("highlands.jpg") 64% center / cover no-repeat;
  }
  .hero-inner { padding-block: 50px; }
  .play-grid, .details, .join-grid { grid-template-columns: 1fr; }
  .details { gap: 18px; }
  .footer-inner { flex-direction: column; align-items: start; justify-content: center; gap: 7px; padding-block: 15px; }
  .footer-inner p { margin: 0; }
}

@media (max-width: 365px) {
  .hero h1 { font-size: 3.55rem; }
}
