@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/pixelify-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --night: #0b1026;
  --dusk: #27305c;
  --ink: #f2ecdc;
  --ink-soft: #b9b2a1;
  --ink-dim: #847d6e;
  --dirt: #1a130d;
  --dirt-2: #22180f;
  --grass: #5fa543;
  --grass-dark: #3e7a2a;
  --torch: #ffc35a;
  --torch-deep: #e07b24;
  --line: #3a2c1f;
  --pixel: "Pixelify Sans", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dirt);
  color: var(--ink);
  font: 18px/1.65 var(--body);
}
a { color: var(--torch); }
img { display: block; max-width: 100%; }

/* Hero: night sky over the pixel landscape. */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  --sky-top: #070b1d;
  --sky-mid: #1a2148;
  --sky-bot: #3b3768;
  --dark: 1;
  --warm: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-bot) 100%);
  overflow: hidden;
}
/* Sky layers, back to front: stars, sun and moon, landscapes, warm light. sky.js drives the
   variables on .hero along a Minecraft-length day; without JS the scene stays at night. */
.sky { position: absolute; inset: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; background: url("/stars.svg") 50% 0 / cover no-repeat; opacity: var(--dark); }
.body {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(52px, 6.5vw, 92px);
  aspect-ratio: 1;
  background: center / contain no-repeat;
  image-rendering: pixelated;
}
/* Smooth movement only once the first position is set, so a reload doesn't sweep the sky. */
.hero[data-ready] .body { transition: transform 1s linear; }
.sun { background-image: url("/sun.svg"); display: none; }
.moon { background-image: url("/moon.svg"); transform: translate(78vw, 12vh); }
.hero[data-live] .sun { display: block; }
.land {
  position: absolute;
  inset: auto 0 0 0;
  height: 78%;
  background: url("/landscape-day.svg") 50% 100% / cover no-repeat;
  image-rendering: pixelated;
}
.land-night { background-image: url("/landscape-night.svg"); opacity: var(--dark); }
.warm {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 150, 90, 0) 30%, rgba(255, 140, 80, .22) 70%, rgba(255, 110, 60, .18) 100%);
  opacity: var(--warm);
}
nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 48px);
  font-family: var(--pixel);
}
nav .mark { font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--ink); text-decoration: none; }
nav ul { display: flex; gap: clamp(12px, 3vw, 32px); list-style: none; margin: 0; padding: 0; }
nav ul a { color: var(--ink-soft); text-decoration: none; font-size: 17px; }
nav ul a:hover { color: var(--ink); }
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 9vh, 110px) clamp(16px, 4vw, 48px) 0;
}
.season {
  font-family: var(--pixel);
  color: var(--torch);
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h1 {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(56px, 13vw, 168px);
  line-height: .9;
  margin: 0;
  letter-spacing: .01em;
  color: #fff6df;
  text-shadow: 4px 4px 0 #8a5a2b, 8px 8px 0 #4a2d16, 12px 12px 0 rgba(0, 0, 0, .35);
}
.tagline {
  max-width: 30em;
  margin: 26px 0 0;
  font-size: clamp(18px, 2.2vw, 22px);
  color: #e6e1f3;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .4);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  font-family: var(--pixel);
  font-size: 19px;
  text-decoration: none;
  padding: 12px 22px 14px;
  color: #2a1606;
  background: var(--torch);
  box-shadow: inset -4px -4px 0 var(--torch-deep), inset 4px 4px 0 #ffe2a3, 0 4px 0 #1a0f06;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost {
  color: var(--ink);
  background: rgba(10, 14, 34, .55);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .35), inset 4px 4px 0 rgba(255, 255, 255, .12), 0 4px 0 #05070f;
}

/* The grass edge between the hero and the dirt below. */
.edge {
  height: 16px;
  background:
    repeating-linear-gradient(90deg, var(--grass) 0 16px, var(--grass-dark) 16px 24px, var(--grass) 24px 40px, #6cb84d 40px 48px);
}

main section {
  padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}
.label {
  font-family: var(--pixel);
  color: var(--grass);
  font-size: 17px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h2 {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 22px;
  color: #fff6df;
}
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--ink); max-width: 36em; margin: 0 0 18px; }
p { margin: 0 0 16px; color: var(--ink-soft); max-width: 40em; }

/* Season 1 */
.s1 { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .s1 { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.facts { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { font-family: var(--pixel); color: var(--ink-dim); font-size: 16px; }
.facts strong { display: block; font-size: 40px; line-height: 1.05; color: var(--torch); font-weight: 700; }
.modwall { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.modwall li {
  font-size: 15px;
  color: var(--ink);
  background: var(--dirt-2);
  padding: 6px 12px;
  box-shadow: inset -3px -3px 0 #120c07, inset 3px 3px 0 #33251a;
}
.modwall li.big { font-size: 18px; color: #fff6df; background: #2c2014; }
.modwall li.more { background: none; box-shadow: none; color: var(--ink-dim); }

/* Season 2 */
.band { background: linear-gradient(180deg, var(--dirt) 0%, #120d09 100%); border-top: 4px solid var(--line); }
.grid4 { display: grid; gap: 36px 48px; grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
@media (min-width: 760px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
.num {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 54px;
  line-height: .9;
  color: var(--dirt);
  -webkit-text-stroke: 2px var(--torch);
  min-width: 1.4em;
}
.item h3 { font-family: var(--pixel); font-size: 26px; font-weight: 700; margin: 4px 0 8px; color: #fff6df; }
.item p { margin: 0; }

/* Join */
.join {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  border: 4px solid var(--line);
  background: #140f0a;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 8px 8px 0 #0a0705;
}
@media (min-width: 900px) { .join { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); } }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; color: var(--ink-soft); }
.steps li::before {
  content: counter(step);
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 22px;
  color: #2a1606;
  background: var(--grass);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  box-shadow: inset -4px -4px 0 var(--grass-dark), inset 4px 4px 0 #8fd16a;
}
.steps strong { display: block; color: var(--ink); font-weight: 600; }

footer {
  border-top: 4px solid var(--line);
  padding: 36px clamp(16px, 4vw, 48px) 48px;
  color: var(--ink-dim);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
}
footer p { margin: 0; color: var(--ink-dim); max-width: 46em; }
footer .mark { font-family: var(--pixel); font-size: 20px; color: var(--ink-soft); }

@media (max-width: 560px) {
  nav ul { gap: 14px; }
  nav ul a { font-size: 15px; }
  .hero { min-height: 780px; }
  .hero .land { height: 50%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  

/* Language switch */
nav .right { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); }
.lang { display: flex; gap: 2px; }
.lang a, .lang span {
  font-size: 15px;
  padding: 3px 8px;
  text-decoration: none;
  color: var(--ink-soft);
}
.lang span { color: #2a1606; background: var(--torch); }
.lang a:hover { color: var(--ink); }
@media (max-width: 560px) {
  nav { flex-wrap: wrap; }
  nav .right { width: 100%; justify-content: space-between; }
}

/* Daylight: darker nav and stronger text shadow when the sky is bright. */
.hero[data-light="day"] .tagline { color: #fff; text-shadow: 0 2px 0 rgba(20, 24, 60, .55), 0 0 18px rgba(20, 24, 60, .35); }
.hero[data-light="day"] .season { color: #7a2f06; }
.hero[data-light="day"] nav ul a, .hero[data-light="day"] .lang a, .hero[data-light="day"] nav .mark { color: #10204a; }

/* Shooting star, night only. */
.shoot {
  position: absolute;
  top: 12%;
  left: 62%;
  width: 72px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 80%, #fff);
  transform: rotate(-24deg);
  opacity: 0;
  pointer-events: none;
  animation: shoot 13s linear infinite 4s;
}
@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(-24deg); }
  2% { opacity: 1; }
  6% { opacity: 0; transform: translate(-260px, 116px) rotate(-24deg); }
  100% { opacity: 0; transform: translate(-260px, 116px) rotate(-24deg); }
}
.hero:not(.is-night) .shoot { display: none; }
@media (prefers-reduced-motion: reduce) { .shoot { display: none; } }

/* FAQ */
.faq { display: grid; gap: 12px; margin-top: 32px; max-width: 860px; }
.faq details {
  background: var(--dirt-2);
  box-shadow: inset -4px -4px 0 #120c07, inset 4px 4px 0 #33251a;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  position: relative;
  font-family: var(--pixel);
  font-size: 20px;
  color: #fff6df;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--torch);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 18px; }
.faq details p { margin: 0 0 10px; }
.faq details p:last-child { margin-bottom: 0; }

/* Game clock, time-lapse easter egg, parallax */
.clock {
  position: absolute;
  z-index: 1;
  right: clamp(16px, 4vw, 48px);
  bottom: 28px;
  font-family: var(--pixel);
  font-size: 17px;
  color: #fff6df;
  background: rgba(10, 14, 34, .55);
  padding: 6px 12px;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .35), inset 3px 3px 0 rgba(255, 255, 255, .1);
}
.hero[data-live] .body { pointer-events: auto; cursor: pointer; }
.hero.warping .body { transition: none; }
.land { translate: 0 var(--land-shift, 0px); }

/* Ultra-wide screens (21:9 and beyond): wider columns, taller hero. */
@media (min-width: 1800px) {
  nav, .hero-copy, main section { max-width: 1560px; }
  .hero { min-height: min(92vh, 980px); }
  h1 { font-size: clamp(168px, 9vw, 220px); }
  .tagline { font-size: 24px; }
  body { font-size: 19px; }
}

/* Launcher walkthrough */
.flow { display: grid; gap: 0; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: flow; max-width: 900px; }
.flow li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 28px;
  position: relative;
}
.flow li::before {
  content: counter(flow);
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 24px;
  color: var(--torch);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #140f0a;
  box-shadow: inset -4px -4px 0 #0a0705, inset 4px 4px 0 #33251a;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 60px;
  bottom: 4px;
  width: 4px;
  background: var(--line);
}
.flow h3 { font-family: var(--pixel); font-size: 22px; margin: 12px 0 6px; color: #fff6df; }
.flow p { margin: 0; }
.note {
  margin-top: 12px;
  padding: 16px 20px;
  border-left: 4px solid var(--grass);
  background: #140f0a;
  color: var(--ink-soft);
  max-width: 900px;
}

/* Legal pages */
.hero.mini { min-height: 0; padding-bottom: 36px; }
.hero.mini .hero-copy { padding-top: 24px; }
.hero.mini h1 { font-size: clamp(40px, 7vw, 76px); text-shadow: 3px 3px 0 #8a5a2b, 6px 6px 0 #4a2d16; }
.doc { max-width: 820px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 48px); }
.doc h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 44px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.doc .updated { font-family: var(--pixel); color: var(--ink-dim); font-size: 15px; }
footer nav.legal { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; font-family: var(--body); max-width: none; margin: 0; width: auto; }
footer nav.legal a { color: var(--ink-soft); }

/* Chronicle: a quiet, centred interlude lit like a campfire. */
.chronicle {
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 154, 60, .16), rgba(255, 154, 60, 0) 60%);
}
.chronicle .label { color: var(--torch); }
.chronicle h2 { font-size: clamp(34px, 5.4vw, 60px); }
.chronicle .lede, .chronicle p { margin-left: auto; margin-right: auto; max-width: 34em; }
.chronicle .lede { font-style: italic; font-size: clamp(20px, 2.2vw, 24px); }
