@font-face {
  font-family: "Square 721";
  src: url("assets/square-721.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --background: #0b0d0f;
  --panel: #111417;
  --line: #2b3036;
  --muted: #a4abb2;
  --text: #f2f4f5;
  --android: #3ddc84;
  --square: "Square 721", "Arial Narrow", sans-serif;
  font-family: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-width: 280px;
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 5%, #1a1f25 0, var(--background) 64%) var(--background);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--android); outline-offset: 4px; }

.page-width { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }

.masthead {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wordmark {
  font: 700 1.03rem/1 var(--square);
  letter-spacing: .075em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span { margin-inline-start: .24em; color: var(--muted); }

.project-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cbd0d5;
  font-size: .78rem;
}

.project-label span { width: 5px; height: 5px; background: #b6bec6; transform: rotate(45deg); }

.launch {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 55px #0006;
}

.splash {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: clamp(290px, 39vw, 490px);
  isolation: isolate;
  background: #121920;
}

.splash-art, .splash::before, .splash::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash-art { object-fit: cover; object-position: center; z-index: -3; }

.splash::before {
  content: "";
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 51%, #080b12bb 0%, #07090d42 28%, transparent 59%),
    linear-gradient(180deg, #090d1420, transparent 50%, #080b10bd);
}

.splash::after {
  content: "";
  inset: 12px;
  width: auto;
  height: auto;
  pointer-events: none;
  background:
    linear-gradient(#adb8c4a6, #adb8c4a6) left top / 20px 1px,
    linear-gradient(#adb8c4a6, #adb8c4a6) left top / 1px 20px,
    linear-gradient(#adb8c4a6, #adb8c4a6) right top / 20px 1px,
    linear-gradient(#adb8c4a6, #adb8c4a6) right top / 1px 20px,
    linear-gradient(#adb8c466, #adb8c466) left bottom / 20px 1px,
    linear-gradient(#adb8c466, #adb8c466) left bottom / 1px 20px,
    linear-gradient(#adb8c466, #adb8c466) right bottom / 20px 1px,
    linear-gradient(#adb8c466, #adb8c466) right bottom / 1px 20px;
  background-repeat: no-repeat;
}

.splash-brand { text-align: center; padding: 30px 16px; }
.splash-brand h1 { margin: 0; }
.splash-brand img { width: clamp(165px, 24vw, 295px); height: auto; filter: drop-shadow(0 8px 13px #000b); }

.edition {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  margin: 14px 0 0;
  color: #e5eaf0;
  font: 700 .7rem/1.2 var(--square);
  letter-spacing: .2em;
}

.edition::before, .edition::after { content: ""; width: 18px; height: 1px; background: #c0c6cb; }

.download {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 21px 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(105deg, #191e23, #101316 60%);
}

.platform { display: flex; align-items: center; gap: 14px; }

.platform-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid #3b444b;
  background: #1f252a;
}

.platform-badge img { width: 30px; height: auto; }

.platform h2, .section-heading h2 { margin: 0; font: 700 1.48rem/1.12 var(--square); }
.platform p, .release-info { margin: 5px 0 0; color: var(--muted); font-size: .79rem; }
.platform p span { margin-inline: 4px; color: #828e99; }
.download-action { text-align: center; }

.release-status, .download-link {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  font-size: .89rem;
  font-weight: 700;
  white-space: nowrap;
}

.release-status { color: #c2c9d0; border: 1px solid #414b54; background: #222830; }
.status-icon { width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; }
.status-icon::before { content: ""; display: block; width: 4px; height: 4px; margin: 2px 0 0 4px; border-left: 1px solid; border-bottom: 1px solid; }
.download-link { color: #071510; background: var(--android); text-decoration: none; }
.download-link:hover { background: #72e7a5; }
.download-icon { font-size: 1.2rem; line-height: 1; }

.gameplay { margin-top: 33px; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 { font-size: 1.2rem; }
.section-heading span { font: 700 .69rem/1.2 var(--square); letter-spacing: .12em; color: var(--muted); }
.captures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.captures figure { position: relative; margin: 0; border: 1px solid var(--line); background: var(--panel); }
.captures img { width: 100%; height: auto; }

.captures figcaption {
  position: absolute;
  bottom: 9px;
  left: 9px;
  padding: 4px 9px;
  border: 1px solid #b9c4ce48;
  background: #0b0d0fe8;
  color: var(--text);
  font-size: .71rem;
  font-weight: 650;
}

.installation { margin-top: 18px; border-block: 1px solid var(--line); }

.installation summary {
  padding-block: 13px;
  font-size: .85rem;
  font-weight: 650;
}

summary { width: fit-content; cursor: pointer; }
summary::marker { color: #9ca9b4; }
.installation ol { margin: 0 0 15px; padding-inline-start: 21px; color: #cbd0d5; font-size: .85rem; line-height: 1.7; }

.site-footer { padding-block: 16px 32px; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.site-footer p { margin: 0 0 7px; }
.credits summary { min-height: 26px; display: list-item; }
.credits a { text-underline-offset: .17em; }

@media (max-width: 700px) {
  .page-width { width: calc(100% - 30px); }
  .masthead { min-height: 58px; }
  .splash { min-height: clamp(180px, 49vw, 330px); }
  .download { padding: 15px; gap: 14px; }
  .platform { gap: 10px; }
  .platform-badge { width: 42px; height: 42px; flex-basis: 42px; }
  .platform-badge img { width: 25px; }
  .platform h2 { font-size: 1.16rem; }
  .platform p { font-size: .69rem; }
  .platform p span { margin-inline: 1px; }
  .release-status, .download-link { min-height: 44px; padding-inline: 10px; gap: 7px; font-size: .76rem; }
  .gameplay { margin-top: 25px; }
}

@media (max-width: 480px) {
  .captures { grid-template-columns: 1fr; }
  .splash::after { inset: 8px; }
  .edition { font-size: .63rem; margin-top: 9px; }
}

@media (max-width: 365px) {
  .download { flex-wrap: wrap; }
  .download-action { width: 100%; }
  .wordmark { font-size: .89rem; }
}
