:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  --background: #07130f;
  --surface: #10251e;
  --surface-soft: #142d24;
  --line: rgba(229, 244, 233, 0.12);
  --muted: #a7b9ae;
  --text: #f4f8f4;
  --green: #8dde8e;
  --green-dark: #1d4e34;
  --coral: #ff7f68;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(circle at 50% -12rem, rgba(69, 149, 91, 0.25), transparent 38rem),
    var(--background);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
  color: #07130f;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand strong {
  color: var(--green);
}

.brand__mark {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 25px;
}

.brand__mark i {
  width: 4px;
  height: 18px;
  border-radius: 99px;
  background: var(--green);
  transform: rotate(8deg);
}

.brand__mark i:nth-child(2) {
  height: 25px;
}

.brand__mark i:nth-child(3) {
  height: 14px;
}

.site-header nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.site-header a:hover,
.site-header a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--green);
}

.store-page {
  padding: 48px 0 52px;
}

.app-heading {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.app-icon {
  width: 104px;
  border-radius: 23%;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.app-title > p:last-child {
  margin: 0;
  color: var(--muted);
}

.play-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid rgba(141, 222, 142, 0.32);
  border-radius: 10px;
  background: var(--green-dark);
  color: #dff8e1;
  font-size: 0.84rem;
  font-weight: 760;
  text-align: center;
}

.play-status:hover,
.play-status:focus-visible {
  border-color: var(--green);
  background: #286b48;
  color: #ffffff;
}

.feature-showcase {
  position: relative;
  margin: 36px 0 24px;
}

.feature-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.feature-art img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.tagline {
  max-width: 760px;
  margin-bottom: 26px;
  color: #d7e2da;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.6;
}

.app-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.app-facts div {
  padding: 0 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.app-facts div:first-child {
  padding-left: 0;
}

.app-facts div:last-child {
  padding-right: 0;
  border-right: 0;
}

.app-facts dt {
  font-size: 1.15rem;
  font-weight: 800;
}

.app-facts dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.store-section {
  padding-top: 38px;
}

.gameplay-video {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(12px, 2.5vw, 30px);
  width: clamp(190px, 20vw, 235px);
  overflow: hidden;
  border: 2px solid rgba(238, 248, 240, 0.28);
  border-radius: 24px;
  background: #020705;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.48);
  transform: translateY(-50%);
}

.gameplay-video video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #020705;
  object-fit: cover;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.section-title span {
  color: var(--muted);
  font-size: 0.76rem;
}

.screenshots {
  display: grid;
  grid-auto-columns: minmax(185px, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  overscroll-behavior-inline: contain;
  scrollbar-color: rgba(141, 222, 142, 0.42) transparent;
  scroll-snap-type: inline proximity;
}

.screenshots figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 248, 240, 0.15);
  border-radius: 16px;
  background: var(--surface);
  scroll-snap-align: start;
}

.screenshots img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.about {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 50px;
  align-items: start;
}

.about p,
.studio-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.about ul {
  display: grid;
  gap: 9px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.about li {
  position: relative;
  padding: 10px 12px 10px 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 45, 36, 0.56);
  color: #dce7df;
  font-size: 0.86rem;
}

.about li::before {
  position: absolute;
  top: 12px;
  left: 13px;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.studio-strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 42px;
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(25, 58, 46, 0.92), rgba(13, 34, 27, 0.92));
}

.studio-strip h2 {
  margin-bottom: 8px;
}

.mini-apps {
  display: grid;
  gap: 10px;
}

.mini-apps article {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(6, 20, 15, 0.55);
}

.mini-apps img {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 13px;
}

.mini-apps strong,
.mini-apps span {
  display: block;
}

.mini-apps span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

footer {
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

footer details {
  margin-top: 14px;
}

footer summary {
  width: max-content;
  cursor: pointer;
  color: #dce7df;
  font-weight: 700;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 14px;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), 1120px);
  }

  .site-header nav a:not(:last-child) {
    display: none;
  }

  .store-page {
    padding-top: 30px;
  }

  .app-heading {
    grid-template-columns: 76px 1fr;
    gap: 15px;
  }

  .app-icon {
    width: 76px;
  }

  .play-status {
    grid-column: 1 / -1;
    width: 100%;
  }

  .feature-showcase {
    margin-top: 24px;
  }

  .feature-art {
    border-radius: 14px;
  }

  .app-facts {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
  }

  .app-facts div:nth-child(2) {
    border-right: 0;
  }

  .app-facts div:nth-child(3),
  .app-facts div:nth-child(4) {
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .screenshots {
    grid-auto-columns: min(67vw, 245px);
  }

  .about,
  .studio-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gameplay-video {
    right: 9px;
    width: clamp(80px, 26vw, 150px);
    border-width: 1px;
    border-radius: 14px;
  }

  .studio-strip {
    padding: 22px;
  }

  .footer-line {
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
