@font-face {
  font-family: PressStart;
  src: url("PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  --sky: #56c9e8;
  --grass: #67bb16;
  --grass-hi: #9be32c;
  --dirt: #763e2e;
  --dirt-dark: #4a251f;
  --panel: #20201d;
  --orange: #e99816;
  --orange-hi: #ffc950;
  --white: #fff;
  --pixel: PressStart, "Courier New", monospace;
  --body: Arial, Helvetica, sans-serif;
  --edge: 4px solid #0b0b09;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
body {
  margin: 0;
  background: var(--sky);
  color: var(--white);
  font-family: var(--body);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018) 0 2px,
    rgba(0, 0, 0, 0.018) 2px 4px
  );
  mix-blend-mode: overlay;
}
img {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.game-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 9px clamp(18px, 4vw, 64px);
  background: linear-gradient(#292922, #171714);
  border-bottom: 5px solid var(--grass-hi);
  box-shadow:
    0 4px 0 #234b12,
    0 8px 18px #0008;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 14px/1 var(--pixel);
  color: var(--orange-hi);
  white-space: nowrap;
  text-shadow: 3px 3px #000;
}
.brand img {
  object-fit: contain;
}
.game-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 36px);
  margin: auto;
}
.game-header nav a {
  font: clamp(8px, 0.7vw, 11px)/1.4 var(--pixel);
  color: #eee;
  transition: 0.15s;
}
.game-header nav a:hover,
.game-header nav a.active {
  color: var(--orange-hi);
  transform: translateY(-2px);
}
.pixel-button,
.dark-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 0;
  color: #fff;
  font: 11px/1.35 var(--pixel);
  text-align: center;
  cursor: pointer;
  image-rendering: pixelated;
  transition:
    transform 0.1s,
    filter 0.1s;
  background: url("resources/button.svg") center/100% 100% no-repeat;
  text-shadow: 2px 2px #75460e;
}
.pixel-button:hover,
.pixel-button:focus-visible {
  background-image: url("resources/button_hover.svg");
  transform: translateY(2px);
  filter: brightness(1.1);
}
.pixel-button--large {
  min-width: min(100%, 330px);
  min-height: 66px;
  font-size: 14px;
}
.dark-button {
  background: #262622;
  border: 3px solid #090909;
  box-shadow:
    inset 0 0 0 3px #555,
    0 5px 0 #0a0a09;
  text-shadow: 2px 2px #000;
}
.dark-button:hover {
  transform: translateY(2px);
  box-shadow:
    inset 0 0 0 3px #777,
    0 3px 0 #0a0a09;
  color: var(--orange-hi);
}
.header-download {
  min-height: 44px;
  white-space: nowrap;
}
.menu-toggle {
  display: none;
}
.hero {
  position: relative;
  min-height: clamp(650px, 53vw, 760px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 70px clamp(24px, 8vw, 130px) 145px;
  background: var(--sky);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-banner.png") center bottom / cover no-repeat;
  transform: scaleX(-1);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 92px;
  background: url("assets/ground-top.svg") left top / 196px 116px repeat-x;
}
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(600px, 70vw);
}
.hero h1 {
  margin: 0 0 24px;
  font: clamp(50px, 8vw, 118px)/0.86 var(--pixel);
  letter-spacing: -0.08em;
  color: var(--orange);
  text-shadow:
    6px 0 #050505,
    -6px 0 #050505,
    0 6px #050505,
    0 -6px #050505,
    10px 12px #000;
}
.hero h1 span {
  display: block;
}
.hero-copy > p {
  margin: 0 0 28px;
  font: clamp(11px, 1.45vw, 20px)/1.7 var(--pixel);
  color: #fff;
  text-shadow:
    3px 3px #000,
    -2px -2px #000;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 330px;
  max-width: 100%;
}
.hazard {
  width: 56px;
  height: 70px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(4px 4px 0 #1118);
}
.cloud {
  position: absolute;
  width: 90px;
  height: 32px;
  background: white;
  opacity: 0.9;
  box-shadow:
    22px -15px 0 white,
    46px 0 0 white;
  image-rendering: pixelated;
}
.cloud-a {
  left: 7%;
  top: 14%;
}
.cloud-b {
  right: 14%;
  top: 10%;
  transform: scale(0.7);
}
.hud-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 24px clamp(24px, 6vw, 100px);
  background-color: var(--dirt);
  background-image: url("assets/ground-top.svg");
  background-size: 196px 116px;
  border-top: 7px solid var(--grass-hi);
  border-bottom: 7px solid var(--grass-hi);
  box-shadow: inset 0 0 0 5px #4f261d;
}
.hud-item {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(#292925, #151513);
  border: var(--edge);
  box-shadow:
    inset 0 0 0 3px #605b4e,
    5px 5px #28140f;
}
.hud-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 48px;
  image-rendering: pixelated;
}
.hud-floppa {
  width: 58px;
  flex-basis: 58px;
}
.android-icon,
.calendar-icon {
  display: grid;
  place-items: center;
  color: #111;
  font: 13px/1 var(--pixel);
  background: #79c832;
  border: 4px solid #10100e;
  box-shadow: inset 0 0 0 3px #a7ef58;
}
.calendar-icon {
  color: #25231e;
  background: #e8e4d6;
  box-shadow: inset 0 10px #8e9796;
}
.hud-item p {
  margin: 0;
}
.hud-item strong,
.hud-item small {
  display: block;
}
.hud-item strong {
  font: 10px/1.5 var(--pixel);
  color: var(--orange-hi);
}
.hud-item small {
  margin-top: 7px;
  font: 700 12px/1.3 var(--body);
  color: #fff;
}
.level-section {
  position: relative;
  padding: 78px clamp(20px, 5vw, 80px);
  background-color: var(--sky);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    transparent 160px
  );
}
.level-section::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46px;
  background: url("assets/ground-top.svg") left top / 196px 116px repeat-x;
}
.section-title {
  position: relative;
  z-index: 3;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: -55px auto 36px;
  padding: 17px 34px;
  background: url("resources/button.svg") center/100% 100% no-repeat;
  font: clamp(13px, 2vw, 24px)/1.3 var(--pixel);
  text-align: center;
  text-shadow: 3px 3px #75460e;
}
.mode-list {
  max-width: 1180px;
  margin: auto;
  padding: 24px;
  background-color: var(--dirt);
  background-image: url("assets/ground-top.svg");
  background-size: 196px 116px;
  border: 7px solid var(--grass);
  box-shadow:
    inset 0 0 0 5px var(--dirt-dark),
    8px 8px #2589a5;
}
.mode-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  min-height: 350px;
  background: var(--panel);
  border: var(--edge);
  box-shadow: inset 0 0 0 4px #545449;
}
.mode-card + .mode-card {
  margin-top: 14px;
}
.mode-card > img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  border-right: 5px solid #090909;
}
.mode-card > div {
  position: relative;
  padding: 40px;
}
.mode-card h3 {
  margin: 0 0 20px;
  font: clamp(18px, 2.4vw, 34px)/1.2 var(--pixel);
  color: var(--orange);
  text-shadow: 4px 4px #000;
}
.mode-card p {
  max-width: 520px;
  margin: 0 0 28px;
  font: 17px/1.6 var(--body);
  color: #eee;
}
.mode-card--reverse img {
  grid-column: 2;
  border-right: 0;
  border-left: 5px solid #090909;
}
.mode-card--reverse div {
  grid-row: 1;
  grid-column: 1;
}
.mode-number {
  position: absolute;
  right: 22px;
  top: 18px;
  font: 13px/1 var(--pixel);
  color: #666;
}
.gallery {
  padding-bottom: 100px;
}
.gallery-shell {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background-color: var(--dirt);
  background-image: url("assets/ground-top.svg");
  background-size: 196px 116px;
  border: 6px solid var(--grass);
  box-shadow: inset 0 0 0 5px var(--dirt-dark);
}
.gallery-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.shot {
  padding: 5px;
  background: #252520;
  border: 4px solid #080807;
  box-shadow: inset 0 0 0 3px #bc7e25;
  cursor: pointer;
  transition: 0.15s;
}
.shot:hover,
.shot.is-active {
  transform: translateY(-5px);
  border-color: var(--orange-hi);
}
.shot img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.gallery-arrow {
  width: 54px;
  height: 70px;
  border: 0;
  background: url("resources/button.svg") center/100% 100% no-repeat;
  color: #fff;
  font: 38px/1 var(--pixel);
  cursor: pointer;
  text-shadow: 3px 3px #653700;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px;
}
.gallery-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 3px solid #111;
  background: #fff;
  cursor: pointer;
}
.gallery-dots button.active {
  background: var(--orange);
}
.lightbox {
  width: min(1200px, 92vw);
  padding: 10px;
  background: #171714;
  border: 5px solid var(--orange);
  box-shadow: 0 0 0 6px #000;
}
.lightbox::backdrop {
  background: #000d;
}
.lightbox img {
  width: 100%;
}
.lightbox button {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: 3px solid #000;
  background: #e54b61;
  color: #fff;
  font: 28px/1 var(--pixel);
  cursor: pointer;
}
.update-section {
  padding-bottom: 105px;
}
.update-log {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 160px 1fr 150px;
  align-items: center;
  gap: 30px;
  padding: 30px;
  background-color: var(--dirt);
  background-image: url("assets/ground-top.svg");
  background-size: 196px 116px;
  border: 7px solid var(--grass);
  box-shadow: inset 0 0 0 5px var(--dirt-dark);
}
.update-log > div:nth-child(2) {
  padding: 24px;
  background: #1b1b18;
  border: var(--edge);
  box-shadow: inset 0 0 0 3px #5d5a50;
}
.calendar {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #e7e4d5;
  border: 5px solid #171714;
  box-shadow: 7px 7px #351812;
  color: #171714;
  text-align: center;
}
.calendar strong {
  font: 42px/1 var(--pixel);
  color: #c84036;
}
.calendar span {
  margin-top: 10px;
  font: 10px/1.6 var(--pixel);
}
.update-log h3 {
  margin: 0 0 18px;
  font: 15px/1.4 var(--pixel);
  color: var(--orange-hi);
}
.update-log ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.update-log li {
  position: relative;
  margin: 10px 0;
  padding-left: 25px;
  line-height: 1.4;
}
.update-log li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #56d536;
  font: bold 18px/1 monospace;
}
.update-log > img {
  object-fit: contain;
  filter: drop-shadow(5px 5px #0007);
}
.faq-section {
  padding-bottom: 110px;
}
.faq-list {
  position: relative;
  max-width: 950px;
  margin: auto;
  padding: 20px;
  background-color: var(--dirt);
  background-image: url("assets/ground-top.svg");
  background-size: 196px 116px;
  border: 7px solid var(--grass);
  box-shadow: inset 0 0 0 5px var(--dirt-dark);
}
.faq-list details {
  width: 72%;
}
.faq-decor {
  position: absolute;
  right: 28px;
  bottom: 18px;
  width: 23%;
  height: calc(100% - 36px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.faq-decor img:nth-child(1) {
  width: 42px;
  height: 58px;
}
.faq-decor img:nth-child(2) {
  width: 112px;
  image-rendering: pixelated;
}
.faq-decor img:nth-child(3) {
  position: absolute;
  right: 4px;
  top: 2px;
  width: 42px;
  image-rendering: pixelated;
}
details {
  background: #1b1b18;
  border: 3px solid #070706;
}
details + details {
  border-top: 0;
}
summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  font: 10px/1.5 var(--pixel);
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  color: var(--orange);
  font: 20px/1 var(--pixel);
}
details[open] summary::after {
  content: "−";
}
details p {
  margin: 0;
  padding: 0 20px 20px;
  color: #cbc8be;
  line-height: 1.6;
}
.community {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 30px clamp(24px, 7vw, 110px);
  background: #22221f;
  border-top: 5px solid #070706;
  border-bottom: 5px solid #070706;
  box-shadow: inset 0 0 0 3px #56564e;
}
.community > div {
  display: flex;
  align-items: center;
  gap: 25px;
}
.community p {
  margin: 0;
}
.community strong,
.community small {
  display: block;
}
.community strong {
  font: clamp(11px, 1.5vw, 18px)/1.5 var(--pixel);
}
.community small {
  margin-top: 10px;
  color: #aaa;
}
.heart {
  font: 64px/1 monospace;
  color: #e7434e;
  text-shadow: 4px 4px #6f1720;
}
.final-cta {
  min-height: 340px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5vw;
  padding: 70px 25px 70px;
  text-align: center;
  background: url("assets/hero-banner.png") center 68% / cover no-repeat;
  border-bottom: 78px solid transparent;
  border-image: url("assets/ground-top.svg") 28 fill / 78px / 0 repeat;
  box-shadow: none;
}
.final-cta h2 {
  margin: 0 0 14px;
  font: clamp(20px, 3vw, 38px)/1.3 var(--pixel);
  color: #fff;
  text-shadow: 4px 4px #000;
}
.final-cta p {
  margin: 0 0 22px;
  font-weight: bold;
  text-shadow: 2px 2px #000;
}
.final-cta .final-floppa {
  width: 108px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(5px 5px #0007);
}
footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(22px, 5vw, 75px);
  background: #171714;
  border-top: 5px solid #080807;
  font: 8px/1.7 var(--pixel);
  color: #ddd;
}
footer strong {
  color: var(--orange);
}
footer b {
  color: #e7434e;
}
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: 54px;
  height: 54px;
  border: 0;
  background: url("resources/button.svg") center/100% 100% no-repeat;
  color: white;
  font: 20px/1 var(--pixel);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.55s steps(5, end),
    transform 0.55s steps(5, end);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 1000px) {
  .game-header {
    gap: 16px;
  }
  .game-header nav {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #171714;
    border-bottom: 5px solid var(--grass-hi);
  }
  body.nav-open .game-header nav {
    display: flex;
  }
  .game-header nav a {
    padding: 12px;
    text-align: center;
  }
  .header-download {
    margin-left: auto;
  }
  .menu-toggle {
    order: 3;
    display: grid;
    gap: 5px;
    width: 46px;
    height: 44px;
    padding: 10px;
    border: 3px solid #000;
    background: var(--orange);
    box-shadow: inset 0 0 0 2px var(--orange-hi);
  }
  .menu-toggle span {
    display: block;
    height: 4px;
    background: #111;
  }
  .hud-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .mode-card {
    grid-template-columns: 1fr;
  }
  .mode-card > img,
  .mode-card--reverse img {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 0;
    aspect-ratio: 16/9;
    border: 0;
    border-bottom: 5px solid #090909;
  }
  .mode-card > div,
  .mode-card--reverse div {
    grid-column: 1;
    grid-row: 2;
  }
  .gallery-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .update-log {
    grid-template-columns: 130px 1fr;
  }
  .update-log > img {
    display: none;
  }
  footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: 66px;
  }
  .game-header {
    min-height: 66px;
    padding: 8px 12px;
  }
  .brand {
    font-size: 9px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .header-download {
    display: none;
  }
  .game-header nav {
    top: 66px;
  }
  .hero {
    min-height: 720px;
    align-items: flex-start;
    padding: 80px 20px 180px;
    background-position: 60% bottom;
  }
  .hero-copy {
    width: 100%;
    text-align: center;
  }
  .hero h1 {
    font-size: clamp(45px, 16vw, 76px);
    letter-spacing: -0.1em;
  }
  .hero-copy > p {
    font-size: 10px;
  }
  .hero-actions {
    margin: auto;
  }
  .cloud {
    transform: scale(0.6);
  }
  .hud-strip {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }
  .hud-item {
    min-height: 72px;
  }
  .level-section {
    padding: 72px 12px 90px;
  }
  .section-title {
    margin-top: -48px;
    padding: 14px 20px;
    font-size: 12px;
  }
  .mode-list {
    padding: 10px;
    border-width: 5px;
  }
  .mode-card > div {
    padding: 28px 20px;
  }
  .mode-card h3 {
    font-size: 18px;
  }
  .mode-card p {
    font-size: 15px;
  }
  .gallery-shell {
    grid-template-columns: 38px 1fr 38px;
    gap: 5px;
    padding: 8px;
    border-width: 5px;
  }
  .gallery-track {
    display: flex;
    overflow: hidden;
  }
  .shot {
    min-width: 100%;
    display: none;
  }
  .shot.is-active {
    display: block;
    transform: none;
  }
  .gallery-arrow {
    width: 38px;
    height: 54px;
    font-size: 25px;
  }
  .update-log {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .calendar {
    grid-template-columns: auto 1fr;
    gap: 15px;
  }
  .update-log > div:nth-child(2) {
    padding: 18px;
  }
  .update-log li {
    font-size: 14px;
  }
  .faq-list {
    padding: 10px;
    border-width: 5px;
  }
  .faq-list details {
    width: 100%;
  }
  .faq-decor {
    display: none;
  }
  summary {
    font-size: 8px;
  }
  .community {
    flex-direction: column;
    text-align: center;
  }
  .community > div {
    flex-direction: column;
  }
  .heart {
    font-size: 50px;
  }
  .final-cta {
    min-height: 390px;
    gap: 8px;
  }
  .final-cta > .hazard {
    width: 42px;
    height: 58px;
  }
  .final-cta .final-floppa {
    width: 90px;
  }
  footer {
    font-size: 7px;
    flex-direction: column;
  }
  .reveal {
    transform: translateY(18px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
