* {
  box-sizing: border-box;
}
:root {
  --ink: #142522;
  --accent: #004e50;
  --teal: #006968;
  --pale: #fff4a5;
  --paper: #f8f7ee;
  --panel: #d5d4c9;
  --edge: #383e39;
  --mono: "Courier New", monospace;
  --sans: Tahoma, "Segoe UI", Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  background: var(--paper);
}
a {
  color: #035b60;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration: underline;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #cb6100;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -100vw;
  top: 4px;
  z-index: 10;
  padding: 0.5rem;
  background: #fff;
}
.skip:focus {
  left: 4px;
}
.container {
  width: min(1200px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin-inline: auto;
}
.top {
  background: #d8d7ca;
  border-top: 3px solid #fdfdf4;
  border-bottom: 2px solid #405453;
  box-shadow: 0 2px #183f3d;
  position: relative;
  z-index: 1;
}
.navrow,
.brand,
.top nav,
.small-button,
.button,
.hero-buttons,
.platform,
.titlebar,
.footer-inner,
.manual-header,
.manual-header > div,
.codebar,
.starter-link {
  display: flex;
  align-items: center;
}
.navrow {
  gap: 2rem;
  min-height: 72px;
}
.brand {
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
  color: #182e2a;
  line-height: 1;
  white-space: nowrap;
}
.brand b {
  font-weight: 500;
}
.brand .pixel-icon {
  width: 37px;
  height: 37px;
}
.pixel-icon,
.big-icon {
  object-fit: contain;
  image-rendering: pixelated;
  flex: none;
}
.top nav {
  gap: 0.25rem;
  margin-left: auto;
}
.top nav a {
  color: var(--ink);
  font-size: 0.96rem;
  padding: 0.34rem 0.8rem;
  text-decoration: none;
}
.top nav .current {
  font-weight: bold;
  background: #e8e7dc;
  box-shadow:
    inset 1px 1px #85877a,
    inset -1px -1px #fff;
}
.top nav a:hover {
  background: #ebeadf;
}
.small-button,
.button,
.copy,
.close {
  background: #dad9cd;
  color: #122321;
  border: 1px solid #37413c;
  box-shadow:
    inset 2px 2px #fffef2,
    inset -2px -2px #898e81,
    2px 2px #253d38;
  text-decoration: none;
  justify-content: center;
  font-weight: 700;
}
.small-button {
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  min-height: 34px;
  font-size: 0.9rem;
}
.small-button img {
  width: 19px;
  height: 19px;
}
.button {
  gap: 0.65rem;
  min-height: 50px;
  padding: 0.65rem 1.1rem;
  font-size: 1rem;
}
.button.yellow {
  background: #ffdf74;
  box-shadow:
    inset 2px 2px #fff8b4,
    inset -2px -2px #b79645,
    3px 3px #183e3e;
}
.button:hover,
.small-button:hover,
.copy:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.button:active,
.small-button:active,
.copy:active {
  transform: translate(1px, 1px);
}
.hero {
  background-color: #006867;
  background-image:
    radial-gradient(circle at 1px 1px, #64a8a264 0.8px, transparent 1px),
    linear-gradient(108deg, #005c5d 2%, #006f6a 70%, #147c70);
  background-size:
    5px 5px,
    100% 100%;
  box-shadow: inset 0 -1px #163f39;
  color: #fffdf0;
  overflow: clip;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  gap: 2.5rem;
  padding-block: clamp(3.4rem, 6vw, 6rem);
}
.hero-text {
  position: relative;
  z-index: 1;
}
.platform {
  gap: 0.65rem;
  font: 700 0.84rem var(--mono);
  letter-spacing: 0.06em;
  color: #e2f3d9;
}
.mini-pixels {
  width: 13px;
  height: 13px;
  background: conic-gradient(
    #ffdf74 25%,
    transparent 0 50%,
    #ffdf74 0 75%,
    transparent 0
  );
  background-size: 7px 7px;
}
.hero h1 {
  font: 800 clamp(3rem, 5.1vw, 5rem) / 0.98 var(--sans);
  letter-spacing: -0.067em;
  margin: 1.1rem 0 1.25rem;
  text-shadow: 2px 3px #004848;
}
.hero h1 em {
  font-style: normal;
  color: #ffe68a;
}
.hero p {
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  max-width: 37ch;
  line-height: 1.48;
  margin: 0 0 1.7rem;
  color: #f4fff4;
}
.hero-buttons {
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero-meta {
  font: 0.85rem var(--mono);
  margin-top: 1rem;
  color: #e0eee3;
}
.hero-meta span {
  margin: 0 0.65rem;
}
.hero-meta a { color: inherit; }
.hero-art {
  position: relative;
  padding: 0 19px 35px 22px;
}
.window,
.lightbox {
  border: 1px solid #33413d;
  background: #d1d1c6;
  padding: 3px;
  box-shadow:
    inset 2px 2px #fffff8,
    inset -2px -2px #82887e,
    3px 3px #253733;
}
.titlebar {
  min-height: 25px;
  gap: 0.45rem;
  padding: 2px 7px;
  background: linear-gradient(93deg, #102666, #13527e);
  color: white;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.2;
}
.titlebar .pixel-icon {
  width: 16px;
  height: 16px;
}
.grip {
  margin-left: auto;
  width: 33px;
  height: 9px;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    #c5d2df 2px 3px
  );
  opacity: 0.7;
}
.studio-shot {
  box-shadow:
    inset 2px 2px white,
    inset -2px -2px #818680,
    8px 9px #003e4580;
}
.studio-shot a,
.shot-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.scene-art {
  width: 100%;
  height: auto;
  display: block;
}
.hero-phone {
  position: absolute;
  bottom: 0;
  right: clamp(-5rem, -5vw, -1.5rem);
  width: clamp(215px, 24vw, 345px);
  aspect-ratio: 1;
  pointer-events: none;
}
.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
}
.pagebody {
  padding: 3.2rem 0 4rem;
}
.overview {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 8vw, 9rem);
  align-items: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #a5ada2;
}
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  margin: 0 0 0.8rem;
}
.overview p,
.sectionhead p,
.first p,
.release p {
  margin: 0;
  color: #3c4a42;
}
.specs {
  font: 0.86rem var(--mono);
  border-top: 1px solid #a7ada3;
}
.specs div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.45rem 0.15rem;
  border-bottom: 1px dotted #a5ada2;
}
.specs strong {
  text-align: right;
}
.section,
.release {
  margin-top: 2.7rem;
}
.sectionhead {
  margin-bottom: 1.35rem;
}
.examples-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.examples-head p, .project-files p { margin: 0; color: #3c4a42; }
.examples-head p { max-width: 63ch; }
.example-bundle { flex: none; text-align: center; }
.example-bundle small { display: block; font: 0.82rem var(--mono); margin-top: 0.6rem; }
.project-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 2px;
  background: #b3bbaf;
  border: 1px solid #808a80;
  box-shadow: inset 1px 1px #76847c, inset -1px -1px #fff;
}
.project-files li {
  background: #fffef6;
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.65rem;
}
.project-files li > img { width: 27px; height: 27px; }
.project-files h3 { font-size: 1.08rem; margin: 0.12rem 0 0.35rem; }
.project-files p { font-size: 0.94rem; line-height: 1.45; }
.sample-download { align-self: center; }
.sample-guide-link { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: bold; }
@media (max-width: 900px) {
  .project-files { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .examples-head { align-items: flex-start; flex-direction: column; gap: 0.9rem; }
  .example-bundle { text-align: left; }
  .project-files li { gap: 0.55rem; padding: 0.85rem; }
}
@media (max-width: 390px) {
  .project-files li { grid-template-columns: auto 1fr; }
  .sample-download { grid-column: 2; justify-self: start; }
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.shot-link > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.73;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 1px inset #9c9d92;
}
.shot-link:hover .titlebar {
  background: #1d597b;
}
.gallery figcaption {
  background: #f0efe5;
  padding: 0.8rem 0.85rem;
  flex: 1;
  color: #39473f;
  font-size: 0.95rem;
}
.first {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 9vw, 8rem);
  padding-block: 2.5rem;
  border-block: 1px solid #a5ada2;
}
.big-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 0.65rem;
}
.text-link {
  display: inline-block;
  font-weight: bold;
  margin-top: 1rem;
}
.first ol {
  list-style: none;
  counter-reset: steps;
  margin: 0;
  padding: 0;
}
.first li {
  position: relative;
  padding-left: 3rem;
  counter-increment: steps;
}
.first li + li {
  margin-top: 1.1rem;
}
.first li:before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  background: #e0e0cf;
  border: 1px solid #7d8e80;
  box-shadow:
    inset 1px 1px white,
    1px 1px #8f9688;
  font: 700 1rem var(--mono);
}
.release-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2.5rem);
  background: #eeede2;
}
.release p {
  max-width: 58ch;
}
.download-action {
  text-align: center;
}
.download-action small:empty { display: none; }
.download-action small {
  display: block;
  margin-top: 0.7rem;
  font: 0.8rem var(--mono);
}
footer {
  background: #d8d7ca;
  border-top: 3px double #849483;
}
.footer-inner {
  gap: 1.5rem;
  padding-block: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.footer-inner .brand {
  font-size: 1.05rem;
}
.footer-inner .brand img {
  width: 25px;
  height: 25px;
}
.footer-inner > span {
  margin-right: auto;
}
.lightbox {
  padding: 4px;
  max-width: min(96vw, 1270px);
  max-height: 94vh;
  color: var(--ink);
}
.lightbox::backdrop {
  background: #0b2024cf;
}
.lightbox .titlebar {
  justify-content: space-between;
}
.close {
  height: 24px;
  width: 27px;
  font-size: 1.2rem;
  line-height: 1;
}
.full-shot {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  margin: auto;
}
.lightbox p {
  margin: 0.6rem 0.8rem;
}
.manual {
  background: #eeeee3;
  padding: 2rem 0 4rem;
}
.manual-header {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #075e60;
  color: white;
  padding: 1rem 1.4rem;
  border: 1px solid #224b47;
  box-shadow: inset 1px 1px #86b5ad;
}
.manual-header > div {
  gap: 0.7rem;
}
.manual-header > div > a {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
  color: white;
  text-decoration: none;
}
.manual-header small {
  font: 0.85rem var(--mono);
  color: #cce6da;
}
.manual-header .pixel-icon {
  width: 32px;
  height: 32px;
}
.search-box label {
  font-size: 0.85rem;
  font-weight: bold;
}
.search-box > div {
  display: flex;
  gap: 0.4rem;
}
.search-box input {
  min-width: 0;
  width: clamp(13rem, 22vw, 22rem);
  padding: 0.43rem 0.65rem;
  border: 2px inset #deded3;
  background: #fffef5;
  color: var(--ink);
}
.doc-layout {
  display: grid;
  grid-template-columns: minmax(208px, 26%) minmax(0, 1fr);
  align-items: start;
  border: 1px solid #a0a59a;
  background: #fbfaf2;
}
.sidebar {
  align-self: stretch;
  padding: 1.2rem;
  background: #deded2;
  border-right: 1px solid #a5ad9f;
}
.sidebar summary {
  font-weight: 700;
  cursor: pointer;
  padding-bottom: 0.5rem;
}
.navgroup {
  margin: 0.8rem 0 1.1rem;
}
.navgroup b {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}
.navgroup a {
  display: block;
  text-decoration: none;
  color: #31413a;
  padding: 0.25rem 0.5rem;
  font-size: 0.93rem;
}
.navgroup a:hover,
.guide-list a:hover {
  background: #edeedc;
  text-decoration: underline;
}
.navgroup a[aria-current] {
  background: #134877;
  color: white;
}
.doc {
  padding: clamp(1.3rem, 3.6vw, 3.4rem);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.doc h1 {
  font: 750 clamp(2rem, 3.3vw, 3.4rem) / 1.05 var(--sans);
  letter-spacing: -0.05em;
  margin: 0 0 1rem;
}
.doc h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.doc section {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #ccd0c2;
}
.intro {
  font-size: 1.12rem;
  color: #405046;
}
.crumb,
.next-guide {
  font: 0.9rem var(--mono);
  color: #59695f;
}
.crumb {
  margin: 0 0 0.9rem;
}
.doc p {
  max-width: 75ch;
}
.anchors,
.starter-link {
  background: #e8ecdc;
  border: 1px solid #aebaa7;
  padding: 0.85rem 1rem;
}
.anchors a {
  display: block;
  margin: 0.25rem 0;
}
.starter-link {
  gap: 0.7rem;
  align-items: flex-start;
}
.starter-link ol {
  padding-left: 1.25rem;
  margin: 0.4rem 0 0;
}
.starter-link li + li {
  margin-top: 0.3rem;
}
.guide-list {
  display: grid;
  gap: 0.5rem;
}
.guide-list a,
.result {
  display: block;
  padding: 0.8rem 1rem;
  color: var(--ink);
  border: 1px solid #c9cdbd;
  background: #f2f2e7;
  text-decoration: none;
}
.guide-list span,
.result span {
  display: block;
  color: #42564d;
}
.guide-list strong,
.result strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.17rem;
}
.doc code {
  font-family: var(--mono);
  font-size: 0.93em;
}
.doc p code {
  color: #224e47;
  background: #e5ebdf;
  padding: 0.06em 0.22em;
}
.example {
  background: #202f34;
  color: #eef6ed;
  box-shadow: 1px 1px #a0a69b;
  overflow: hidden;
}
.codebar {
  justify-content: space-between;
  background: #324847;
  color: #eff5e7;
  padding: 0.4rem 0.65rem;
  font: 0.88rem var(--mono);
}
.copy {
  padding: 0.22rem 0.6rem;
  font: 700 0.8rem var(--sans);
}
pre {
  padding: 1rem;
  overflow: auto;
  line-height: 1.6;
  margin: 0;
  tab-size: 4;
}
.tok-keyword {
  color: #8fdaf2;
}
.tok-value {
  color: #ffd98c;
}
.tok-string {
  color: #b3e2a1;
}
.tok-comment {
  color: #b7c5c7;
}
.next-guide {
  margin-top: 2.5rem;
  border-top: 1px dotted #9ba89b;
  padding-top: 1rem;
}
.next-guide a {
  display: block;
}
.result {
  margin: 0.6rem 0;
}
.result small {
  font-family: var(--mono);
}
@media (min-width: 1600px) {
  .hero-grid {
    padding-block: 5.5rem;
  }
}
@media (max-width: 900px) {
  .container {
    width: calc(100% - 2.5rem);
  }
  .hero-grid {
    gap: 0.8rem;
  }
  .hero-buttons {
    gap: 0.6rem;
  }
  .button {
    padding: 0.55rem 0.8rem;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 5.8vw, 3.9rem);
  }
  .hero-art {
    padding-left: 0;
  }
  .gallery {
    gap: 0.75rem;
  }
  .navrow {
    gap: 0.75rem;
  }
  .release-body {
    grid-template-columns: 1fr;
  }
  .download-action {
    justify-self: start;
  }
}
@media (max-width: 680px) {
  .container {
    width: calc(100% - 2rem);
  }
  .navrow {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    padding: 0.65rem 0 0.35rem;
  }
  .navrow .brand {
    font-size: 1.2rem;
  }
  .navrow .brand img {
    width: 30px;
    height: 30px;
  }
  .top nav {
    order: 3;
    flex-wrap: wrap;
    margin: 0.5rem 0 0;
    width: 100%;
    gap: 0.45rem;
  }
  .top nav a {
    padding: 0.3rem 0.55rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 2.5rem 0 2rem;
    gap: 1.75rem;
  }
  .hero-art {
    padding: 0 1.3rem 2.2rem 0;
    max-width: 500px;
    width: 100%;
    justify-self: center;
  }
  .hero h1 {
    font-size: clamp(3rem, 11vw, 4rem);
  }
  .hero-phone {
    right: -2.5rem;
    width: clamp(170px, 51vw, 245px);
  }
  .hero p {
    margin-bottom: 1.1rem;
  }
  .overview,
  .first,
  .gallery,
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .overview,
  .first {
    gap: 1.5rem;
  }
  .gallery {
    gap: 1.15rem;
  }
  .pagebody {
    padding: 2rem 0;
  }
  .footer-inner {
    gap: 0.7rem 1rem;
  }
  .footer-inner > span {
    display: none;
  }
  .manual {
    padding: 1rem 0 2rem;
  }
  .manual-header {
    align-items: stretch;
    flex-direction: column;
  }
  .search-box input {
    width: auto;
    flex: 1;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #a5ad9f;
    padding: 0.65rem 0.9rem;
  }
  .sidebar summary {
    padding: 0;
  }
  .doc {
    padding: 1.2rem;
  }
  .release-body {
    gap: 1rem;
  }
  .gallery figcaption {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 390px) {
  .top nav { gap: 0.1rem; }
  .top nav a { padding-inline: 0.25rem; }
}

.guide-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 2px inset #acb1a6;
}
.doc {
  min-width: 0;
}
@media (max-width: 680px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
