/* The EnderPanel website.
   Pixel font for headlines and small labels, the system font for reading.
   Blocks from the Rook vault are named with their id where they start. */

@font-face {
  font-family: 'Pixel Code';
  src: url('PixelCode-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* PP Neue Machina (Plain), for headings and reading text. The web files
   from the Pangram Pangram download (the owner has their annual plan). */
@font-face { font-family: 'PP Neue Machina'; font-weight: 400; font-display: swap; src: url('fonts/PPNeueMachina-PlainRegular.woff2') format('woff2'); }
@font-face { font-family: 'PP Neue Machina'; font-weight: 600; font-display: swap; src: url('fonts/PPNeueMachina-PlainMedium.woff2') format('woff2'); }

/* Google Sans Flex (Google, free under the OFL, licence in fonts/), only for
   the word "Android" on the APK button: the Android wordmark is drawn in
   Google's own lettering. The medium weight, Latin letters only. */
@font-face { font-family: 'Google Sans Flex'; font-weight: 500; font-display: swap; src: url('fonts/GoogleSansFlex-Medium-latin.woff2') format('woff2'); }

:root {
  --sky: #07060b;
  --obsidian: #0f0d17;
  --slot: #1b1728;
  --line: #2b2540;
  --violet: #a66bff;
  --violet-deep: #6b3fc0;
  --green: #48c4a4; /* the teal of the logo's chest */
  --green-deep: #1f8c70;
  --gold: #f0e488; /* the yellow of the logo's clasp */
  --text: #efeaf9;
  --dim: #aaa4ba;

  --pixel: 'Pixel Code', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --head: 'PP Neue Machina', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'PP Neue Machina', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --u: 4px; /* one "pixel" of the blocky edges */
  /* Osmo easing (vault 223) */
  --ease-osmo: cubic-bezier(0.625, 0.05, 0, 1);
}

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

html { background: var(--sky); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

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

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: 1rem; top: -5rem; z-index: 50;
  background: var(--green); color: var(--sky); padding: 0.6em 1em;
  font-family: var(--pixel); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Lenis (vault 1798): the rules from its stylesheet */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Anchor Links Target Offset (vault 219) */
.scroll-target { scroll-margin-top: 6em; }

/* --- The sky: the app's end portal, with a violet wash over it ------------ */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.sky::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 70% 0%, hsl(268 70% 40% / 0.12), transparent 60%),
    linear-gradient(180deg, hsl(250 30% 4% / 0.5), hsl(250 30% 3% / 0.76));
}

/* --- Shared pieces ------------------------------------------------------- */
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, 46rem); }

/* A block with stepped pixel corners: the fill is the element, the edge is
   four hard shadows that leave the corners out. */
.px {
  --u: 2px;
  background: var(--obsidian);
  box-shadow:
    calc(var(--u) * -1) 0 0 0 var(--line),
    var(--u) 0 0 0 var(--line),
    0 calc(var(--u) * -1) 0 0 var(--line),
    0 var(--u) 0 0 var(--line);
}

.h2 {
  font-family: var(--head); font-weight: 600;
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 24em;
  text-wrap: balance;
}
.h3 { font-family: var(--pixel); font-size: 1.2rem; line-height: 1.25; }
.sub { color: var(--dim); margin-top: 0.75rem; max-width: 38em; }
.lede { font-size: 1.2rem; color: var(--dim); max-width: 30em; }

.band { padding-block: clamp(3rem, 7vw, 5.25rem); }
/* The violet the whole site used to be. Kept for the header bar, the footer
   and one band, so the page still has somewhere lighter. */
.is-violet { --sky: #0b0716; --obsidian: #161028; --slot: #241a3d; --line: #3a2c5e; --dim: #b3a9cc; }
/* The green box: the page's one loud moment, for the friend who was sent a
   link. A box, not a band, with a chunky pixel edge of see-through black. */
.invited--green {
  --u: 4px;
  --edge: color-mix(in srgb, var(--green), #000 30%);
  background: var(--green); color: #04231a;
  box-shadow:
    calc(var(--u) * -1) 0 0 0 var(--edge),
    var(--u) 0 0 0 var(--edge),
    0 calc(var(--u) * -1) 0 0 var(--edge),
    0 var(--u) 0 0 var(--edge);
}
.invited--green .sub, .invited--green .invited__steps li { color: #0d4634; }
.invited--green .invited__steps b { color: #04231a; }
.invited--green .step__n { background: #04231a; color: var(--green); }
.band--violet { background: #100b21; border-block: 1px solid var(--line); margin-block: clamp(1.5rem, 4vw, 3rem); }
.band--last { padding-bottom: clamp(4rem, 10vw, 8rem); }

.btn {
  --btn: var(--violet);
  --btn-deep: var(--violet-deep);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.55em 1.3em;
  font-family: var(--pixel); font-size: 1rem; line-height: 1.2;
  color: #fff; background: var(--btn); border: 0; cursor: pointer;
  text-decoration: none; text-align: center;
  box-shadow:
    calc(var(--u) * -1) 0 0 0 var(--btn),
    var(--u) 0 0 0 var(--btn),
    0 calc(var(--u) * -1) 0 0 var(--btn),
    0 var(--u) 0 0 var(--btn-deep),
    calc(var(--u) * -1) var(--u) 0 0 var(--btn-deep),
    var(--u) var(--u) 0 0 var(--btn-deep),
    0 calc(var(--u) * 2) 0 0 var(--btn-deep);
  margin: var(--u) var(--u) calc(var(--u) * 2);
  transition: transform 0.12s var(--ease-osmo), filter 0.2s var(--ease-osmo);
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(var(--u)); }
.btn--green { --btn: var(--green); --btn-deep: var(--green-deep); color: #04231a; }
.btn--quiet { --btn: var(--slot); --btn-deep: #0c0a13; color: var(--text); }
.btn--small { min-height: 2.25rem; font-size: 0.875rem; padding: 0.3em 0.9em; }
.btn[aria-disabled='true'] { --btn: var(--slot); --btn-deep: #0c0a13; color: var(--dim); }

.tag {
  display: inline-block; font-family: var(--pixel); font-size: 0.8125rem;
  color: #04231a; background: var(--green); padding: 0.1em 0.6em;
}

.dot {
  display: inline-block; width: 0.6em; height: 0.6em; background: var(--green);
  margin-right: 0.5em;
}

/* --- Centered Scaling Navigation Bar (vault 58) --------------------------- */
.navigation { z-index: 500; pointer-events: none; position: fixed; inset: 0; }
.navigation__dark-bg {
  opacity: 0; pointer-events: auto; visibility: hidden; background-color: #000;
  position: absolute; inset: 0; transition: all 0.7s cubic-bezier(0.5, 0.5, 0, 1);
}
[data-navigation-status='active'] .navigation__dark-bg { opacity: 0.55; visibility: visible; }
.centered-nav {
  flex-flow: column; justify-content: flex-start; align-items: stretch;
  width: 30em; display: flex; position: absolute; top: 1.25em; left: 50%; transform: translate(-50%);
}
.centered-nav__bg {
  width: 100%; height: 100%; position: absolute; inset: 0%;
  /* Nearly solid instead of blurred: blurring the moving sky behind it on
     every frame was a large part of what made scrolling heavy. */
  background-color: rgb(22 16 40 / 0.96);
  box-shadow:
    calc(var(--u) * -1) 0 0 0 var(--line),
    var(--u) 0 0 0 var(--line),
    0 calc(var(--u) * -1) 0 0 var(--line),
    0 var(--u) 0 0 var(--line);
}
.centered-nav__header {
  z-index: 1; justify-content: space-between; align-items: center;
  padding: 0.9em 1.1em 0.9em 1.25em; display: flex; position: relative;
}
.centered-nav__logo { pointer-events: auto; justify-content: center; align-items: center; width: 10.5em; display: flex; }
.centered-nav__logo-svg { width: 100%; height: auto; image-rendering: pixelated; }
.centered-nav__toggle {
  pointer-events: auto; cursor: pointer; background-color: #0000; border: 0;
  justify-content: center; align-items: center; width: 2.5em; height: 2.5em; padding: 0;
  display: flex; position: relative;
}
.centered-nav__toggle .centered-nav__toggle-bar {
  background-color: var(--green); width: 1.875em; height: 4px; position: absolute;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0, 1);
  transform: translateY(-0.25em) rotate(0.001deg);
}
.centered-nav__toggle:hover .centered-nav__toggle-bar { transform: translateY(0.25em) rotate(0.001deg); }
.centered-nav__toggle .centered-nav__toggle-bar:nth-child(2) { transform: translateY(0.25em) rotate(0.001deg); }
.centered-nav__toggle:hover .centered-nav__toggle-bar:nth-child(2) { transform: translateY(-0.25em) rotate(0.001deg); }
[data-navigation-status='active'] .centered-nav__toggle .centered-nav__toggle-bar { transform: translateY(0em) rotate(45deg); }
[data-navigation-status='active'] .centered-nav__toggle .centered-nav__toggle-bar:nth-child(2) { transform: translateY(0em) rotate(-45deg); }
.centered-nav__content {
  grid-template-rows: 0fr; display: grid; position: relative; overflow: hidden;
  transition: grid-template-rows 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}
[data-navigation-status='active'] .centered-nav__content { grid-template-rows: 1fr; }
.centered-nav__inner {
  gap: 1.5em; pointer-events: auto; flex-flow: column; justify-content: flex-start; align-items: center;
  width: 100%; display: flex; position: relative; overflow: hidden; min-height: 0;
}
.centered-nav__ul {
  flex-flow: column; justify-content: flex-start; align-items: stretch;
  width: 100%; margin: 0; padding: 0.25em 1.25em 0; display: flex; position: relative;
}
.centered-nav__li { margin: 0; padding: 0; list-style: none; overflow: clip; }
.hamburger-nav__a {
  display: block; position: relative; padding: 0.7em 0; text-decoration: none;
  font-family: var(--pixel); font-size: 1.25rem; line-height: 1.2; color: var(--text);
  transition-delay: inherit;
}
.hamburger-nav__a:hover { color: var(--green); }
.hamburger-nav__a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; width: 100%; height: 1px;
  background: currentColor; opacity: 0.2; transition-delay: inherit; transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0, 1);
}
[data-navigation-status='active'] .hamburger-nav__a::after { transform: scaleX(1); }
.hamburger-nav__a:hover::after { opacity: 0.4; }
.hamburger-nav__p {
  transition: transform 0.6s cubic-bezier(0.65, 0, 0, 1);
  transform: translate(0px, 150%); transition-delay: inherit;
}
[data-navigation-status='active'] .hamburger-nav__p { transform: translate(0px, 0%); }
.centered-nav__banner-w { justify-content: center; align-items: center; width: 100%; display: flex; }
.centered-nav__banner {
  color: #04231a; background-color: var(--green); width: 100%; max-width: 100%;
  padding-top: 1em; padding-bottom: 1em; text-decoration: none; display: block;
  transition: background-color 0.15s; overflow: hidden;
}
.centered-nav__banner:hover { background-color: #78dcb0; }
.centered-nav__banner:focus-visible { outline-offset: -5px; outline-color: #04231a; }
.centered-nav__banner-row { justify-content: flex-start; align-items: center; display: flex; }
.centered-nav__banner-item { flex: none; justify-content: flex-start; align-items: center; display: flex; }
.centered-nav__banner-inner { flex: none; justify-content: flex-start; align-items: center; padding-right: 2em; display: flex; }
.centered-nav__banner-text { margin-bottom: 0; font-family: var(--pixel); font-size: 1rem; line-height: 1; }
@media screen and (max-width: 767px) {
  .centered-nav { width: auto; top: 1em; left: 1em; right: 1em; transform: none; }
}
[data-navigation-status='active'] [data-css-marquee-list] { animation-play-state: running; }
[data-navigation-status='active'] .centered-nav__banner:hover [data-css-marquee-list] { animation-play-state: paused; }

/* --- The dark sheet over the galaxy, from below the hero to the questions --- */
.veil { position: relative; z-index: 0; padding-bottom: 2rem; display: flow-root; }
.veil::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  /* A gradient that fades out at the foot, rather than a mask the size of
     the page, which is costly to redraw while scrolling. */
  background: linear-gradient(rgb(7 6 11 / 0.9) calc(100% - 12rem), rgb(7 6 11 / 0));
}

/* --- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(11rem, 18vw, 15rem) calc(var(--shot-lift) + clamp(1.5rem, 3vw, 2.25rem)); }
.hero__in { display: grid; gap: 3rem; align-items: center; }

.hero__h1 {
  font-family: var(--head); font-weight: 600;
  font-size: clamp(1.9rem, 8.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero__h1 span { display: block; white-space: nowrap; }
.hero__h1-go { color: var(--green); }
.hero .lede { margin-top: 1.5rem; }
.hero__get { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.75rem; }

/* Three small green tags above the hero heading. */
.facts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem;
}
.facts li {
  display: inline-flex; align-items: center; gap: 0.55em; min-height: 1.45rem;
  font-family: var(--pixel); font-size: 0.75rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em;
  color: #04231a; background: var(--green); padding: 0.35em 0.5em 0.3em;
  box-shadow: 0 2px 0 var(--green-deep);
}
.facts__os .os { width: 0.85rem; height: 0.85rem; background: #04231a; }

/* --- Works with: CSS Marquee (vault 147) --------------------------------- */
.works {
  display: flex; align-items: center; gap: 1.5rem;
  border-block: 1px solid rgb(43 37 64 / 0.7);
  padding-left: 1.25rem;
}
.works__label { font-family: var(--pixel); font-size: 0.875rem; color: var(--gold); flex: none; }
.marquee-css {
  flex: 1; min-width: 0; display: flex; position: relative; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 4rem, #000 calc(100% - 4rem), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4rem, #000 calc(100% - 4rem), transparent);
}
.marquee-css__list { flex: none; align-items: center; display: flex; position: relative; }
.marquee-css__item { flex: 0; align-items: center; display: flex; gap: 2.25rem; padding: 1rem 2.25rem 1rem 0; }
.marquee-css__item::after { content: ''; width: 0.5rem; height: 0.5rem; background: var(--line); flex: none; }
.marquee-css__item-p { white-space: nowrap; font-family: var(--pixel); font-size: 1.05rem; line-height: 1; color: var(--dim); }
/* The logos in the strip: each maker's own mark, shown in one colour. */
.wk {
  flex: none; width: 1.5rem; height: 1.5rem; margin-right: -1.5rem; background: var(--dim);
  mask: var(--wk) center / contain no-repeat; -webkit-mask: var(--wk) center / contain no-repeat;
}
.wk--paper { --wk: url('img/works/paper-mono.png'); }
.wk--vanilla { --wk: url('img/works/vanilla.svg'); }
.wk--fabric { --wk: url('img/works/fabric-mono.png'); }
.wk--forge { --wk: url('img/works/forge-anvil.svg'); width: 2.2rem; }
.wk--neoforge { --wk: url('img/works/neoforge-mono.png'); }
.wk--purpur { --wk: url('img/works/purpur.svg'); }
.wk--spigot { --wk: url('img/works/spigot-mono.png'); width: 1.9rem; }
.wk--modrinth { --wk: url('img/works/modrinth.svg'); }
.wk--discord { --wk: url('img/works/discord.svg'); width: 1.8rem; }
.wk--mac { --wk: url('img/os-mac.svg'); }
.wk--windows { --wk: url('img/os-windows.svg'); width: 1.3rem; }
.wk--linux { --wk: url('img/os-linux.svg'); }
@keyframes translateX { to { transform: translateX(-100%); } }
[data-css-marquee-list] {
  animation: translateX 30s linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

/* --- How it works -------------------------------------------------------- */
.steps { display: grid; gap: 2rem; margin-top: 2.5rem; counter-reset: none; }
.step { padding: 1.25rem 1.25rem 1.5rem; margin: var(--u); display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; align-content: start; }
.step__pic {
  grid-column: 1 / -1; background: var(--sky); min-height: 9.5rem; margin-bottom: 1.25rem;
  padding: 1.1rem; display: flex; flex-direction: column; justify-content: center; gap: 0.9rem;
}
.step__n {
  grid-row: span 2; align-self: start;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 1.1rem; color: #04231a; background: var(--green);
}
.step .h3 { align-self: center; }
.step > p:last-child { grid-column: 2; color: var(--dim); margin-top: 0.4rem; }

.mock-field {
  border: 3px solid var(--line); padding: 0.55em 0.8em; font-size: 1rem;
  display: flex; align-items: center;
}
.caret { width: 2px; height: 1.2em; background: var(--green); margin-left: 3px; animation: blink 1s steps(2) infinite; }
.mock-chips { display: flex; gap: 0.5rem; font-family: var(--pixel); font-size: 0.875rem; }
.mock-chips span { padding: 0.25em 0.75em; background: var(--slot); color: var(--dim); }
.mock-chips .is-on { background: var(--green); color: #04231a; }
.mock-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.mock-bar i { aspect-ratio: 1; background: var(--green); }
.mock-bar .is-off { background: var(--slot); }
.mock-say { font-family: var(--pixel); font-size: 0.875rem; color: var(--dim); }
.mock-entry { display: flex; align-items: center; gap: 0.8rem; border: 3px solid var(--line); padding: 0.7rem; }
.mock-entry img { width: 3rem; flex: none; image-rendering: pixelated; }
.mock-entry b { display: block; font-weight: 600; line-height: 1.2; }
.mock-entry span { font-size: 0.8125rem; color: var(--dim); }
.mock-bars { margin-left: auto; display: flex; align-items: flex-end; gap: 3px; height: 1.2rem; }
.mock-bars i { width: 4px; background: var(--green); }
.mock-bars i:nth-child(1) { height: 25%; }
.mock-bars i:nth-child(2) { height: 50%; }
.mock-bars i:nth-child(3) { height: 75%; }
.mock-bars i:nth-child(4) { height: 100%; }

/* --- The three chests ---------------------------------------------------- */
.chests { display: grid; gap: 2.5rem; margin-top: 3rem; }
.chest img { height: 6.5rem; width: auto; image-rendering: pixelated; margin-bottom: 1.25rem; }
.chest p { color: var(--dim); margin-top: 0.5rem; max-width: 22em; }
/* On phones, where the chests stack, each chest and its words are centred. */
@media (max-width: 47.99rem) {
  .chest { text-align: center; }
  .chest img, .chest p { margin-inline: auto; }
}

/* --- What's inside ------------------------------------------------------- */
.inv { margin: 2.5rem var(--u) var(--u); padding: 1.25rem; display: grid; gap: 1.5rem; }
.inv__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-content: start; }
.slot {
  aspect-ratio: 1; padding: 14%; cursor: pointer; border: 0; display: grid; place-items: center;
  background: var(--slot);
  box-shadow: inset 3px 3px 0 #0c0a13, inset -3px -3px 0 #2b2540;
  transition: background-color 0.2s var(--ease-osmo);
}
.slot svg { width: 100%; height: 100%; display: block; transition: transform 0.25s var(--ease-osmo); }
.slot:hover { background: #262036; }
.slot:hover svg { transform: translateY(-2px); }
.slot[aria-pressed='true'] { background: #262036; box-shadow: inset 0 0 0 3px var(--green); }
.slot.is-soon svg { opacity: 0.38; }
.slot.is-soon:hover svg, .slot.is-soon[aria-pressed='true'] svg { opacity: 1; }
.slot--empty { cursor: default; display: block; }
.slot--empty:hover { background: var(--slot); }

/* The description, drawn like an item's tooltip */
.tip {
  background: #0a0810; padding: 1.1rem 1.25rem 1.25rem;
  border: 3px solid var(--violet-deep);
  box-shadow: 0 0 0 3px #0a0810;
  margin: 3px;
}
.tip__name { font-family: var(--pixel); font-size: 1.3rem; line-height: 1.2; color: var(--green); margin-bottom: 0.6rem; }
.tip .tag { background: var(--gold); margin-bottom: 0.7rem; }
.tip__small { margin-top: 0.75rem; font-size: 0.875rem; color: var(--violet); font-family: var(--pixel); }
.inv[data-ready] .tip { display: none; }
.inv[data-ready] .tip[data-open] { display: block; animation: pop 0.3s var(--ease-osmo) both; }
.inv:not([data-ready]) .inv__tips { display: grid; gap: 1rem; }

/* --- Got a link from a friend ------------------------------------------- */
.band--tight { padding-block: clamp(1.5rem, 4vw, 3rem); }
.hero__invited { margin-top: 1.5rem; color: var(--dim); font-size: 0.9375rem; }
.hero__invited a { color: var(--green); text-underline-offset: 0.25em; }
.invited { margin: var(--u); padding: 1.5rem 1.25rem; display: grid; gap: 1.75rem; }
.invited__head { display: flex; align-items: center; gap: 1.25rem; }
.invited__head img { width: 5rem; flex: none; image-rendering: pixelated; }
.invited__steps { display: grid; gap: 1rem; }
.invited__steps li { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--dim); }
.invited__steps b { color: var(--text); font-weight: 600; }
.invited__steps .step__n { flex: none; }

/* --- Already have a server ------------------------------------------------ */
.bring { display: grid; gap: 1.25rem; align-items: center; }
.bring__pic { width: 6rem; }
.bring__pic svg { width: 100%; height: auto; display: block; }

/* --- When something goes wrong -------------------------------------------- */
.story { margin-top: 3rem; display: grid; gap: 2.5rem; }
.story__row { display: grid; gap: 1.5rem; align-items: center; }
.story__pic { margin: var(--u); padding: 1.25rem; min-height: 9rem; display: flex; flex-direction: column; justify-content: center; }
.story__say { display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; align-content: start; }
.story__say .step__n { grid-row: span 2; }
.story__say .h3 { align-self: center; }
.story__say > p { grid-column: 2; color: var(--dim); margin-top: 0.5rem; max-width: 30em; }
.story__say > .way__small { font-family: var(--pixel); font-size: 0.8125rem; color: var(--violet); margin-top: 0.9rem; }
.ping { background: var(--sky); padding: 0.9rem 1rem; border-left: 4px solid #ff6b6b; }
.ping__who { font-family: var(--pixel); font-size: 0.8125rem; color: var(--violet); }
.ping p { margin-top: 0.3rem; color: var(--dim); }
.ping b { color: var(--text); font-weight: 600; }
.chat { display: grid; gap: 0.7rem; }
.chat p { padding: 0.65rem 0.9rem; max-width: 26em; font-size: 0.9375rem; }
.chat__you { background: var(--slot); justify-self: end; }
.chat__it { background: var(--sky); border-left: 4px solid var(--green); color: var(--dim); }
.copies { display: grid; gap: 0.5rem; }
.copies li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--sky); padding: 0.55rem 0.9rem; font-size: 0.9375rem; color: var(--dim); }
.copies i { font-style: normal; font-family: var(--pixel); font-size: 0.8125rem; color: var(--green); }
.copies li:nth-child(2) { color: var(--text); box-shadow: inset 0 0 0 3px var(--green); }

/* --- Friends ------------------------------------------------------------- */
.ways { display: grid; gap: 2rem; margin-top: 2.5rem; }
.way { padding: 1.4rem 1.4rem 1.6rem; margin: var(--u); }
.way .tag { margin-bottom: 0.9rem; }
.way > p:not(.tag) { color: var(--dim); margin-top: 0.6rem; }
.way .way__small { font-family: var(--pixel); font-size: 0.8125rem; color: var(--violet); margin-top: 1rem; }
.way--best {
  box-shadow:
    calc(var(--u) * -1) 0 0 0 var(--green),
    var(--u) 0 0 0 var(--green),
    0 calc(var(--u) * -1) 0 0 var(--green),
    0 var(--u) 0 0 var(--green);
}

/* --- Is my computer good enough ------------------------------------------- */
.fit { margin: 2.5rem var(--u) 0; padding: 1.25rem; max-width: 46rem; }
.fit__pick { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fit__chip {
  min-height: 2.75rem; padding: 0.3em 1em; cursor: pointer; border: 0;
  font-family: var(--pixel); font-size: 0.9375rem; background: var(--slot); color: var(--dim);
  transition: background-color 0.2s var(--ease-osmo), color 0.2s var(--ease-osmo);
}
.fit__chip:hover { color: var(--text); }
.fit__chip[aria-pressed='true'] { background: var(--green); color: #04231a; }
.fit__answer { margin-top: 1.5rem; }
.fit__answer > p { color: var(--dim); max-width: 32em; }
.fit__answer .fit__give { font-family: var(--pixel); font-size: 1.3rem; line-height: 1.2; color: var(--text); margin: 1rem 0 0.4rem; }
.fit__bar { display: flex; gap: 4px; }
.fit__bar i { flex: 1; max-width: 2.25rem; height: 1.5rem; background: var(--slot); }
.fit__bar .is-server { background: var(--green); }
.fit__note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: #8b81a6; }
.fit[data-ready] .fit__answer { display: none; }
.fit[data-ready] .fit__answer[data-open] { display: block; animation: pop 0.3s var(--ease-osmo) both; }

/* --- Is it safe ---------------------------------------------------------- */
.safe { display: grid; gap: 2.5rem; }
.safe__head a { color: var(--green); text-underline-offset: 0.25em; }
.safe__parents { margin-top: 1.5rem; padding: 1rem 1.1rem; background: var(--obsidian); border-left: 4px solid var(--violet); color: var(--dim); max-width: 30em; }
.safe__parents b, .safe__list b { color: var(--text); font-weight: 600; }
.safe__list { display: grid; }
.safe__list li { position: relative; padding: 1rem 0 1rem 2rem; border-top: 1px solid var(--line); color: var(--dim); }
.safe__list li:last-child { border-bottom: 1px solid var(--line); }
.safe__list li::before { content: ''; position: absolute; left: 0; top: 1.45rem; width: 0.8rem; height: 0.8rem; background: var(--green); }
.safe__list .is-care::before { background: var(--gold); }

/* --- Rent or own --------------------------------------------------------- */
.vs { margin: 2.5rem var(--u) 0; padding: 0.5rem 1.25rem; }
.vs__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.vs__row > :first-child { grid-column: 1 / -1; font-family: var(--pixel); font-size: 0.875rem; color: var(--gold); }
.vs__row--head { border-top: 0; font-family: var(--pixel); color: var(--dim); }
.vs__row--head > :first-child { display: none; }
.vs__row--head > :last-child { color: var(--green); }
.vs .is-us { color: var(--text); font-weight: 600; }
.vs__row > [role='cell']:not(.is-us) { color: var(--dim); }
.vs__note { margin-top: 1.5rem; color: var(--dim); max-width: 40em; }

/* --- Questions: Accordion CSS Animation (vault 29) ----------------------- */
.accordion-css { position: relative; margin-top: 2.5rem; }
.accordion-css__list { gap: 1.1rem; flex-flow: column; margin: 0; padding: 0 var(--u); display: flex; }
.accordion-css__item { list-style: none; }
.accordion-css__item-top {
  gap: 1em; cursor: pointer; justify-content: space-between; align-items: center;
  width: 100%; padding: 1.05em 1.1em 1.05em 1.3em; display: flex; text-align: left;
  background: none; border: 0; color: inherit; font: inherit;
}
.accordion-css__item-bottom { transition: grid-template-rows 0.6s var(--ease-osmo); grid-template-rows: 0fr; display: grid; position: relative; overflow: hidden; }
[data-accordion-status='active'] .accordion-css__item-bottom { grid-template-rows: 1fr; }
.accordion-css__item-bottom-wrap { flex-flow: column; min-height: 0; display: flex; position: relative; overflow: hidden; }
.accordion-css__item-bottom-content { padding: 0 1.3em 1.4em; color: var(--dim); max-width: 36em; }
.accordion-css__item-h3 { display: block; font-family: var(--pixel); font-size: 1.05rem; line-height: 1.3; }
/* A plus made of two bars; the upright one lies down when open. */
.accordion-css__item-icon { position: relative; flex-shrink: 0; width: 1rem; height: 1rem; }
.accordion-css__item-icon::before,
.accordion-css__item-icon::after {
  content: ''; position: absolute; inset: 0; margin: auto; background: var(--green);
  width: 100%; height: 4px; transition: transform 0.6s var(--ease-osmo);
}
.accordion-css__item-icon::after { transform: rotate(90deg); }
[data-accordion-status='active'] .accordion-css__item-icon::after { transform: rotate(0.001deg); }

/* --- Computer logos ------------------------------------------------------ */
.os { width: 1.6rem; height: 1.6rem; background: var(--text); flex: none; mask: var(--os) center / contain no-repeat; -webkit-mask: var(--os) center / contain no-repeat; }
.os--mac { --os: url('img/os-mac.svg'); }
.os--windows { --os: url('img/os-windows.svg'); }
.os--linux { --os: url('img/os-linux.svg'); }
.os--android { --os: url('img/os-android.svg'); }

/* --- Credit for the name -------------------------------------------------- */
.credit__go { margin-top: 0.75rem; }
.credit__go a { font-family: var(--pixel); font-size: 0.9375rem; color: var(--green); text-underline-offset: 0.25em; }
.foot__base { display: grid; gap: 0.75rem; }
.foot__credit a { color: var(--dim); }
.foot__credit a[href] { text-underline-offset: 0.2em; }
.foot__credit a[href]:hover { color: var(--text); }

/* --- The plain pages: help, privacy, terms -------------------------------- */
.doc-top { width: min(100% - 2rem, 46rem); margin: 1.5rem auto 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.doc-top img { width: 10.5rem; image-rendering: pixelated; }
.doc-top a:last-child { font-family: var(--pixel); font-size: 0.875rem; color: var(--green); text-underline-offset: 0.25em; }
.doc { width: min(100% - 2rem - var(--u) * 2, 46rem); margin: 2.5rem auto 5rem; padding: 2rem 1.25rem 2.5rem; background: rgb(15 13 23 / 0.95); }
.doc h1 { font-family: var(--head); font-weight: 600; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; }
.doc h2 { font-family: var(--pixel); font-size: 1.25rem; line-height: 1.25; color: var(--green); margin-top: 2.5rem; }
.doc h3 { font-family: var(--pixel); font-size: 1.05rem; margin-top: 1.75rem; }
.doc p, .doc ul { margin-top: 0.9rem; color: var(--dim); max-width: 38em; }
.doc .doc__lede { font-size: 1.15rem; color: var(--text); }
.doc b { color: var(--text); font-weight: 600; }
.doc a { color: var(--green); text-underline-offset: 0.2em; }
.doc ul { display: grid; gap: 0.6rem; }
.doc li { padding-left: 1.5rem; position: relative; }
.doc li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 0.55em; height: 0.55em; background: var(--green); }
.doc__date { font-family: var(--pixel); font-size: 0.8125rem; color: var(--violet); }
@media (min-width: 48rem) { .doc { padding: 3rem 3rem 3.5rem; } }

/* --- Footer -------------------------------------------------------------- */
.foot { border-top: 1px solid rgb(58 44 94 / 0.6); background: rgb(11 7 22 / 0.8); padding-block: 3rem; font-size: 0.9375rem; }
.foot__in { display: grid; gap: 2rem; }
.foot__brand img { width: 11rem; image-rendering: pixelated; margin-bottom: 0.9rem; }
.foot__brand p { color: var(--dim); max-width: 22em; }
.foot__links { display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem clamp(2rem, 6vw, 4.5rem); justify-content: start; }
.foot__group { display: grid; gap: 0.55rem; align-content: start; }
.foot__head { font-family: var(--pixel); font-size: 0.8125rem; color: var(--text); margin-bottom: 0.2rem; }
.foot__links a { color: var(--dim); text-decoration: none; }
.foot__links a:hover { color: var(--text); }
.foot__legal { color: #8b81a6; font-size: 0.8125rem; max-width: 30em; text-wrap: balance; }

/* --- Wider screens ------------------------------------------------------- */
@media (min-width: 48rem) {
  .fit { padding: 1.75rem; }
  .safe { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
  .invited { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 2rem; gap: 2.5rem; }
  .bring { grid-template-columns: auto 1fr; gap: 2rem; }
  .story__row { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .story__row:nth-child(even) .story__pic { order: 2; }
  .steps, .ways { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .chests { grid-template-columns: repeat(3, 1fr); }
  .demo { padding: 1.75rem; }
  /* The chest keeps its six across; the description takes whatever width is left. */
  .inv { padding: 1.75rem; grid-template-columns: clamp(16rem, 36vw, 27rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
  .inv__tips, .inv .tip { height: 100%; }
  .vs { padding: 0.5rem 1.75rem; }
  .vs__row { grid-template-columns: 1.1fr 1fr 1fr; }
  .vs__row > :first-child { grid-column: auto; font-size: 0.9375rem; }
  .vs__row--head > :first-child { display: block; }
  .get { padding: 3rem 2.5rem 2rem; }
  .foot__in { grid-template-columns: 1fr auto; align-items: start; }
  .foot__base { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; }
  .foot__credit { text-align: left; justify-self: end; max-width: 40em; text-wrap: balance; }
}

@media (min-width: 64rem) {
  .hero__h1 { font-size: min(4.75rem, 6vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* --- The helper ------------------------------------------------------------ */
.runline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--slot); }
.runline code { font-family: var(--pixel); font-size: 0.875rem; color: var(--text); }
.runline i { font-style: normal; font-family: var(--pixel); font-size: 0.8125rem; color: #04231a; background: var(--green); padding: 0.2em 0.7em; }
.gamechat { display: grid; gap: 0.35rem; background: rgb(0 0 0 / 0.55); padding: 0.85rem 1rem; font-family: var(--pixel); font-size: 0.875rem; line-height: 1.45; }
.gamechat p { color: var(--text); }
.gamechat__who { color: var(--text); }
.gamechat__it { color: #ff79ff; }
.gamechat__muted { color: var(--dim) !important; }
.helper-note { font-family: var(--pixel); font-size: 0.8125rem; color: var(--violet); margin-top: 2.5rem; }

/* --- Join pages -------------------------------------------------------------- */
.join-pages { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .join-pages { grid-template-columns: 1.1fr 1fr; } }
.ticks { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--dim); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 0.6em; height: 0.6em; background: var(--green); }
.joinmock { padding: 1.4rem; display: grid; gap: 0.7rem; margin: var(--u); }
.joinmock__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.joinmock__head img { width: 3.5rem; image-rendering: pixelated; }
.joinmock__ver { font-family: var(--pixel); font-size: 0.75rem; color: var(--gold); }
.joinmock__name { font-family: var(--pixel); font-size: 1.25rem; }
.joinmock__title { font-family: var(--pixel); font-size: 0.95rem; margin-top: 0.4rem; }
.joinmock__row { display: flex; align-items: center; gap: 0.75rem; background: var(--slot); padding: 0.45rem 0.5rem 0.45rem 0.85rem; }
.joinmock__row span { font-family: var(--pixel); font-size: 0.75rem; color: var(--dim); min-width: 4rem; }
.joinmock__row code { font-family: var(--pixel); font-size: 0.875rem; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.joinmock__row i { font-style: normal; font-family: var(--pixel); font-size: 0.75rem; background: var(--obsidian); padding: 0.3em 0.6em; }
.joinmock__tip { font-size: 0.875rem; color: var(--dim); }

/* Report a problem */
.report { display: grid; gap: 1.1rem; margin-top: 2rem; }
.report__field { display: grid; gap: 0.45rem; }
.report__field > span { font-family: var(--pixel); font-size: 0.9rem; color: var(--text); }
.report__field i { font-style: normal; color: var(--dim); font-size: 0.8rem; margin-left: 0.4rem; }
.report textarea, .report input, .report select {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--text);
  background: var(--slot); border: var(--u) solid var(--line); border-radius: 0; resize: vertical;
}
.report textarea::placeholder, .report input::placeholder { color: #7d7399; }
.report textarea:focus, .report input:focus, .report select:focus { border-color: var(--green); outline: none; }
.report__pair { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .report__pair { grid-template-columns: 1fr 1fr; } }
.report__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report__error { color: #ff6b6b; margin: 0; }
.report .btn { justify-self: start; }
.report .btn:disabled { opacity: 0.6; cursor: progress; }
.report__done { margin-top: 2rem; }

/* ===========================================================================
   The hero: the promise in the middle, the app itself underneath, and the
   menu bar menu hovering over its corner.
   =========================================================================== */
.hero__in { gap: clamp(2.5rem, 6vw, 4.5rem); justify-items: center; }
.hero__copy { display: grid; justify-items: center; text-align: center; }
.hero__copy .lede { margin-inline: auto; }
.hero__get, .facts { justify-content: center; }
.hero__shot { position: relative; width: min(100%, 64rem); margin-inline: auto; }
.appshot { margin: var(--u); background: var(--obsidian); cursor: zoom-in; }
.appshot img, .shots__pic img, .tour__pic img { display: block; width: 100%; height: auto; }
.hero__shot::before {
  content: ''; position: absolute; inset: 12% 8% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgb(72 196 164 / 0.22), transparent);
  filter: blur(30px);
}

/* The menu bar menu, drawn rather than photographed. */
.barmock {
  position: absolute; right: -1.5rem; bottom: -2.5rem; width: 19.5rem;
  margin: var(--u); padding: 0.45rem; display: none;
  background: rgb(27 23 40 / 0.96); font-size: 0.875rem; line-height: 1.2;
}
.barmock__row { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.6rem; color: var(--text); white-space: nowrap; }
.barmock__row img { width: 1.15rem; height: 1.15rem; image-rendering: pixelated; }
.barmock__row i { width: 0.55rem; height: 0.55rem; background: #6e6682; flex: none; }
.barmock__row i.is-on { background: var(--green); }
.barmock__row span { margin-left: auto; color: var(--dim); font-size: 0.8125rem; }
.barmock__row.is-check::before { content: '✓'; color: var(--green); width: 0.55rem; }
.barmock__line { height: 1px; margin: 0.3rem 0.6rem; background: var(--line); }
@media (min-width: 64rem) { .barmock { display: block; } }

/* --- Click to Zoom (vault 70) --------------------------------------------- */
[data-click-zoom-lightbox] > img { display: block; max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; }
.click-zoom__lightbox {
  z-index: 1000; cursor: zoom-out; background-color: rgb(7 6 11 / 0.92);
  justify-content: center; align-items: center; padding: 3em; display: none; position: fixed; inset: 0;
}


/* ===========================================================================
   The screenshot sits across the end of the hero: its top half over the
   galaxy, its bottom half on the flat sheet that starts there. It leans
   back, and stands up as you scroll (see initShotTilt). Around it a run of
   pixels in the logo's colours travels the edge.
   =========================================================================== */
:root {
  /* How much of the screenshot sits over the galaxy before the flat sheet
     begins: about its top fifth (it is 1800 by 1161, at most 64rem wide). */
  --shot-lift: calc(min(100vw - 2rem, 64rem) * 0.645 * 0.2);
}
.hero-shot { margin-top: calc(var(--shot-lift) * -1); perspective: 1300px; position: relative; z-index: 1; }
.veil::after {
  /* The hero's end: one line across where the flat sheet begins. */
  content: ''; position: absolute; inset: 0 0 auto; height: var(--u); z-index: -1;
  background: var(--line);
}
.hero-shot .hero__shot {
  /* Hinged at the top, so it stays just under the hero and swings down
     into place; a transform, so nothing below it moves. */
  transform-origin: 50% 0%;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--tilt-scale, 1));
  will-change: transform;
}
.hero-shot + .works { margin-top: clamp(3.5rem, 8vw, 6rem); }

/* The trace: a stepped band of square pixels just outside the picture, with
   a bright run that goes round. */
@property --trace { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.appshot { position: relative; }
.appshot__trace {
  --dot: 6px;
  position: absolute; inset: calc((var(--dot) + var(--u) + 2px) * -1); z-index: -1; pointer-events: none;
  background: conic-gradient(from var(--trace),
    transparent 0deg, rgb(166 107 255 / 0.25) 40deg, var(--violet) 90deg, var(--green) 150deg,
    rgb(72 196 164 / 0.3) 200deg, transparent 250deg 360deg);
  /* Square pixels with a 2px gap, along four straight strips that stop
     short of each corner, so the corners step in like pixel art: the grid,
     kept only where one of the strips is. */
  --grid-x: repeating-linear-gradient(90deg, #000 0 var(--dot), transparent 0 calc(var(--dot) + 2px));
  --grid-y: repeating-linear-gradient(0deg, #000 0 var(--dot), transparent 0 calc(var(--dot) + 2px));
  --solid: linear-gradient(#000 0 0);
  -webkit-mask-image: var(--grid-x), var(--grid-y), var(--solid), var(--solid), var(--solid), var(--solid);
  -webkit-mask-size: 100% 100%, 100% 100%,
    calc(100% - var(--dot) * 2 - 4px) var(--dot), calc(100% - var(--dot) * 2 - 4px) var(--dot),
    var(--dot) calc(100% - var(--dot) * 2 - 4px), var(--dot) calc(100% - var(--dot) * 2 - 4px);
  -webkit-mask-position: 0 0, 0 0, center top, center bottom, left center, right center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in, source-in, source-over, source-over, source-over;
  mask-image: var(--grid-x), var(--grid-y), var(--solid), var(--solid), var(--solid), var(--solid);
  mask-size: 100% 100%, 100% 100%,
    calc(100% - var(--dot) * 2 - 4px) var(--dot), calc(100% - var(--dot) * 2 - 4px) var(--dot),
    var(--dot) calc(100% - var(--dot) * 2 - 4px), var(--dot) calc(100% - var(--dot) * 2 - 4px);
  mask-position: 0 0, 0 0, center top, center bottom, left center, right center;
  mask-repeat: no-repeat;
  mask-composite: intersect, intersect, add, add, add;
  padding: var(--dot);
  animation: trace 6s steps(72) infinite;
}
@keyframes trace { to { --trace: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .hero-shot .hero__shot { transform: none; }
  .appshot__trace { animation: none; }
}

/* Who made it: the photo pinned top-left, the words across the rest, and
   the link and the coffee button on one line underneath. */
.maker { margin: var(--u); padding: 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.maker__photo { width: clamp(4.5rem, 14vw, 6.5rem); height: auto; aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 0 var(--u) var(--line); }
.maker__hi { font-family: var(--pixel); font-size: 1.1rem; color: var(--green); }
.maker__say { color: var(--dim); margin-top: 0.5rem; }
/* The words sit beside the photo; the link and the button run the full
   width underneath, on one line. */
.maker > div { display: contents; }
.maker__photo { grid-row: 1 / 3; }
.maker__hi { grid-column: 2; align-self: end; }
.maker__say { grid-column: 2; align-self: start; margin-top: -0.75rem; }
.maker__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: -0.25rem; }
.maker__link { font-family: var(--pixel); font-size: 0.875rem; color: var(--text); text-underline-offset: 0.25em; }
.maker__link:hover { color: var(--green); }
.maker__coffee { margin-block: 0 calc(var(--u) * 2); white-space: nowrap; flex: none; }
.maker__coffee[aria-disabled='true'] { cursor: default; }
@media (min-width: 40rem) { .maker { padding: 1.75rem 2rem; gap: 1.75rem; } }
.foot__maker { margin-top: 0.4rem; font-size: 0.875rem; color: var(--dim); }
.foot__maker a { color: var(--text); text-underline-offset: 0.2em; }

/* Under the big promise, the reassurance in the pixel font, in green, at
   section-title size; then the line that explains it. */
.hero__h1 .hero__h1-sub {
  font-family: var(--pixel); font-weight: 400; letter-spacing: 0;
  font-size: clamp(1.35rem, 3.2vw, 2.2rem); line-height: 1.2;
  color: var(--green); margin-top: 0.5em;
  white-space: normal; text-wrap: balance;
}
.hero__copy .lede { margin-top: 1.5rem; }
.hero__copy .hero__get { margin-top: 1.6rem; }

/* ===========================================================================
   Download: a crafting window. The one light surface on the page, drawn as
   a game menu: a grey panel with a raised edge, sunken slots, dark lettering.
   =========================================================================== */
/* The game-menu panel, shared by the crafting window and step 2. */
.craft, .manage {
  --gui: #c6c6c6; --gui-hi: #ffffff; --gui-lo: #555555; --ink: #3f3f3f;
  background: var(--gui); color: var(--ink);
  box-shadow:
    inset 4px 4px 0 var(--gui-hi), inset -4px -4px 0 var(--gui-lo),
    0 0 0 4px #000, 0 18px 50px rgb(0 0 0 / 0.55);
}
.craft {
  --slot: #8b8b8b;
  max-width: 40rem; margin: 0 auto; padding: 1.5rem 1.25rem 1.25rem;
  container: craft / inline-size;
  --dl-h: calc(3rem + 12px); /* the download button with its pixel edge */
  image-rendering: pixelated;
}
.craft__recipe {
  display: grid; grid-template-columns: repeat(3, auto); grid-template-areas: "grid arrow out" "dl dl dl";
  justify-content: center; align-items: center;
  column-gap: clamp(0.75rem, 4vw, 2rem); row-gap: 1.1rem; margin: 0.9rem 0 0.4rem;
}
.craft__grid { grid-area: grid; display: grid; grid-template-columns: repeat(3, var(--cell)); gap: 4px; --cell: clamp(2.6rem, 9vw, 3.4rem); }
.craft__slot {
  width: var(--cell, 3.4rem); height: var(--cell, 3.4rem); display: grid; place-items: center;
  background: var(--slot);
  box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 var(--gui-hi);
}
.craft__item { width: 70%; height: 70%; display: grid; place-items: center; }
.craft__item svg { width: 100%; height: 100%; }
img.craft__item { width: 78%; height: auto; image-rendering: pixelated; }
.craft__slot--out { grid-area: out; --cell: clamp(3.6rem, 13vw, 4.8rem); }
/* The arrow: a little pixel arrow, drawn with a clip. */
.craft__arrow {
  grid-area: arrow;
  width: clamp(2.2rem, 7vw, 3rem); aspect-ratio: 22 / 16; background: var(--gui-lo);
  clip-path: polygon(0 37.5%, 59% 37.5%, 59% 0, 100% 50%, 59% 100%, 59% 62.5%, 0 62.5%);
}
/* Narrow: the download button runs under the whole recipe. Wide enough: it
   hangs right under the chest, and the same space above the chest keeps
   the chest level with the arrow and the middle of the grid. */
.craft__end { display: contents; }
.craft .dl { grid-area: dl; justify-self: center; }
@container craft (min-width: 29rem) {
  .craft__recipe { grid-template-areas: "grid arrow end"; column-gap: 1.75rem; }
  .craft__end {
    grid-area: end; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding-top: calc(0.5rem + var(--dl-h));
  }
}
@media (min-width: 40rem) {
  .craft { padding: 1.75rem 2rem 1.75rem; }
}

/* Crafting it: the slots fill one by one when the window comes into view,
   then the chest appears. */
.craft.is-armed [data-craft-slot] .craft__item,
.craft.is-armed [data-craft-out] .craft__item { opacity: 0; transform: scale(0.4); }
.craft [data-craft-slot] .craft__item,
.craft [data-craft-out] .craft__item { transition: opacity 0.25s steps(3), transform 0.35s var(--ease-osmo); }
.craft.is-crafted [data-craft-slot] .craft__item,
.craft.is-crafted [data-craft-out] .craft__item { opacity: 1; transform: none; }
.craft.is-crafted [data-craft-out] .craft__item { transition-delay: 1.15s; }


/* Download: the big title, centred, then the two steps (side by side on wide
   screens, the windows level with each other), then the maker's note. */
.get-layout { display: grid; gap: 1.75rem; }
/* The same size as the hero heading (.hero__h1) at every width. */
.get-layout__title {
  font-family: var(--head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(1.9rem, 8.6vw, 4rem); text-align: center;
}
@media (min-width: 64rem) { .get-layout__title { font-size: min(4.75rem, 6vw); } }
/* "Download EnderPanel" when the steps sit side by side, just "Download"
   when they stack. */
.get-layout__name { display: none; }
.get-layout__note { margin: 0 var(--u); padding: 0.85rem 1rem; font-size: 0.9375rem; color: var(--dim); background: rgb(240 228 136 / 0.08); box-shadow: inset 4px 0 0 var(--gold); }
.get-layout__note b { color: var(--text); font-weight: 600; }
.get-layout__maker { margin: 1rem var(--u) var(--u); }

.get-steps { display: grid; gap: 3rem; margin-top: 0.5rem; }
.get-step { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.get-step__head { display: flex; gap: 0.9rem; align-items: flex-start; }
.get-step__head .step__n { flex: none; }
.get-step__title { font-family: var(--head); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.015em; }
.get-step__say { color: var(--dim); margin-top: 0.35rem; max-width: 32em; }
.get-step .craft, .get-step .manage { width: 100%; max-width: 40rem; margin-inline: 0; }
/* Level with the panel beside it, so the recipe sits in the middle. */
.get-step .craft { display: flex; flex-direction: column; }
.get-step .craft__recipe { margin-block: auto; padding-block: 0.9rem 0.5rem; }
/* Under the recipe: the app can go on more than one computer. */
.craft__more { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.25rem; padding-top: 1rem; color: #4a4a4a; font-size: 0.9375rem; line-height: 1.4; }
.craft__more b { color: var(--ink); font-weight: 600; }
.craft__more p { text-wrap: balance; }
/* A drawn computer in a crafting slot, so the note reads as part of the window. */
.craft__slot--note { --cell: 2.6rem; flex: none; }
@media (min-width: 60rem) {
  .get-layout__title { white-space: nowrap; }
  .get-layout__name { display: inline; }
  .get-steps {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(2rem, 4vw, 3.5rem); row-gap: 1.25rem;
  }
  .get-step { grid-row: span 3; grid-template-rows: subgrid; gap: 1.25rem; }
  .get-step .craft, .get-step .manage { max-width: none; }
  /* The note centred under the recipe: the question on its own line, so
     the text block is only as wide as its longest line. */
  .craft__more { justify-content: center; }
  .craft__more b { display: block; }
  /* The maker's note runs the full width: photo, words, then the links. */
  .get-layout__maker { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 1.75rem; padding: 1.5rem 1.75rem; }
  .get-layout__maker .maker__say { max-width: 46em; }
  .get-layout__maker .maker__foot {
    grid-column: 3; grid-row: 1 / 3; align-self: center;
    flex-direction: column; align-items: flex-end; gap: 0.75rem; margin: 0;
  }
}

/* The download button: your computer's logo and Download, and an arrow
   that opens the list of every computer. One pixel-edged button, two parts. */
.dl { position: relative; }
.dl__btn.btn { padding: 0; align-items: stretch; }
.dl__btn.btn:hover { filter: none; }
.dl__go, .dl__more {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.3em 0.95em; color: inherit; text-decoration: none;
  background: none; border: 0; cursor: pointer; font: inherit;
  transition: background-color 0.2s var(--ease-osmo);
}
.dl__more { padding-inline: 0.8em; border-left: 2px solid var(--btn-deep); }
.dl__go:hover, .dl__more:hover, .dl.is-open .dl__more { background: rgb(255 255 255 / 0.14); }
.dl__go .os { width: 1.05rem; height: 1.05rem; background: currentColor; }
.dl__go .os[hidden] { display: none; }
.dl__caret {
  width: 10px; height: 6px; background: currentColor;
  clip-path: polygon(0 0, 100% 0, 100% 34%, 80% 34%, 80% 67%, 60% 67%, 60% 100%, 40% 100%, 40% 67%, 20% 67%, 20% 34%, 0 34%);
  transition: transform 0.3s var(--ease-osmo);
}
.dl.is-open .dl__caret { transform: rotate(180deg); }
/* The list: an item tooltip, dark with a violet edge. */
.dl__menu {
  position: absolute; z-index: 20; top: calc(100% + 0.25rem); left: 50%; translate: -50% 0;
  min-width: max(100%, 14rem); padding: 4px;
  background: #140b24;
  border: 2px solid transparent; border-image: linear-gradient(#8150e8, #34197a) 1;
  box-shadow: 0 0 0 2px #140b24, 0 18px 36px rgb(0 0 0 / 0.5);
  transform-origin: 50% 0;
  animation: dl-open 0.28s var(--ease-osmo);
}
.dl__menu[hidden] { display: none; }
@keyframes dl-open { from { opacity: 0; transform: translateY(-6px) scaleY(0.9); } }
.dl__pick {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem;
  font-family: var(--pixel); font-size: 0.9375rem; line-height: 1.2; color: var(--text); text-decoration: none;
}
.dl__pick .os { width: 1.15rem; height: 1.15rem; background: var(--text); }
.dl__kind { margin-left: auto; padding-left: 1.25rem; font-size: 0.8125rem; color: #b3a9cc; }
.dl__pick[href]:hover { background: rgb(166 107 255 / 0.22); }
.dl__pick:focus-visible { outline: none; background: rgb(166 107 255 / 0.22); box-shadow: inset 0 0 0 2px var(--green); }
.dl__pick[aria-disabled='true'] { color: #7d7591; cursor: default; }
.dl__pick[aria-disabled='true'] .os { background: #7d7591; }
@media (prefers-reduced-motion: reduce) {
  .dl__menu { animation: none; }
  .dl__caret, .dl__go, .dl__more { transition: none; }
}

/* Step 2: the places to manage it from, one row each. */
.manage { padding: 0.5rem 1.25rem; display: grid; }
.manage__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.25rem; padding: 1.15rem 0; }
/* Between rows, a groove pressed into the grey: a dark line over a light one. */
.manage__row + .manage__row, .craft__more { border-top: 2px solid #8b8b8b; box-shadow: inset 0 2px 0 #e4e4e4; }
.manage__row--phone { display: grid; justify-content: stretch; }
.manage__where { font-family: var(--pixel); font-size: 1rem; line-height: 1.3; color: var(--ink); }
.manage__say { color: #4a4a4a; font-size: 0.9375rem; margin-top: 0.25rem; max-width: 30em; }
.manage__row > .btn { flex: none; margin-block: var(--u) calc(var(--u) * 2); }
/* Open Remote opens in a new tab: a small pixel arrow pointing up and out. */
.btn--go { gap: 0.55rem; }
.btn__arrow { width: 0.7rem; height: 0.7rem; flex: none; shape-rendering: crispEdges; }
.manage .stores__test { color: #4a4a4a; }
.manage .stores__test a { color: #1e1e1e; }
.manage .stores__soon { color: #574c10; }
/* The browser version is only offered when the screen is wide enough for
   the two steps side by side; narrower screens get the store apps. (It
   still works at enderpanel.app/app/ for anyone who goes there.) */
@media (max-width: 59.99rem) {
  .manage__row--browser { display: none; }
}
@media (min-width: 40rem) { .manage { padding: 0.75rem 2rem; } }

/* Download sits on a violet band of its own. */
#download.band--violet { margin-block: clamp(1.5rem, 4vw, 3rem) 0; }

/* The credit for the name sits in a small block of its own. */
.foot__credit {
  padding: 0.85rem 1rem; text-align: left;
  background: rgb(27 23 40 / 0.7);
  box-shadow: calc(var(--u) * -1) 0 0 0 var(--line), var(--u) 0 0 0 var(--line), 0 calc(var(--u) * -1) 0 0 var(--line), 0 var(--u) 0 0 var(--line);
  margin: var(--u);
}

/* --- Guides --------------------------------------------------------------- */
.guide__crumbs { font-family: var(--pixel); font-size: 0.875rem; margin-bottom: 0.75rem; }
.guide__crumbs a { color: var(--green); }
.guide__label { font-family: var(--pixel); font-size: 0.8125rem; color: var(--green); margin: 0 0 0.4rem; max-width: none; }
.guide__short {
  margin-top: 1.25rem; padding: 1.1rem 1.25rem; background: var(--slot);
  box-shadow: inset var(--u) 0 0 var(--green);
}
.guide__short p { margin-top: 0; color: var(--text); }
.guide ol { display: grid; gap: 0.6rem; margin-top: 0.9rem; padding-left: 1.4rem; color: var(--dim); list-style: decimal; }
.guide ol li { padding-left: 0.25rem; }
.guide ol li::before { content: none; }
.guide code { font-family: var(--pixel); font-size: 0.875em; color: var(--text); background: var(--slot); padding: 0.05em 0.35em; }
.guide__easy {
  margin: 2.75rem 0 0.5rem; padding: 1.5rem 1.5rem 1.25rem; background: #120c26;
  box-shadow: 0 0 0 var(--u) var(--violet);
}
.guide__easy h2 { margin-top: 0; color: var(--text); }
.guide__easy p { color: var(--dim); }
.guide__easy .btn { margin-top: 0.5rem; }
.guide h3 { color: var(--text); }
.guide__list { gap: 1.1rem !important; }
.guide__list a b { color: var(--text); }

/* Purple buttons always have white text, even inside text whose links are teal. */
.doc a.btn, .guide a.btn { color: #fff; text-decoration: none; }
.doc a.btn--green, .guide a.btn--green { color: #04231a; }
.doc a.btn--quiet, .guide a.btn--quiet { color: var(--text); }

/* Header: GitHub beside the menu button. */
.centered-nav__end { display: flex; align-items: center; gap: 0.35em; pointer-events: auto; }
.centered-nav__github {
  display: grid; place-items: center; width: 2.5em; height: 2.5em; color: var(--dim);
  transition: color 0.15s;
}
.centered-nav__github:hover { color: var(--text); }
.centered-nav__github:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* On a phone the header sits right on top of the hero, so the heading starts
   well below it. */
@media screen and (max-width: 767px) {
  .hero { padding-top: 14rem; }
}

/* --- On your phone ------------------------------------------------------- */
/* The store apps: Apple's badge, Google's faded until it is out, and the APK. */
.stores__badges { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.75rem 1rem; }
/* Apple's and Google's lettering on a black pixel button with a grey lip,
   like Download APK beside them. */
/* All three are the App Store button's width (its artwork plus 0.7rem each
   side) and sit their artwork at the same top, so the letters line up. */
.btn--store {
  --btn: #161616; --btn-deep: #383838; color: #fff;
  width: calc(1.55rem * 99.52 / 25.06 + 1.4rem); height: 2.5rem; min-height: 0;
  padding: 0.475rem 0 0; align-items: flex-start; justify-content: center;
}
.btn--store:hover { filter: none; --btn: #222; }
.btn--store img, .store__art { display: block; height: 1.55rem; width: auto; }
/* Google's letters run wider than Apple's: as big as the width allows (97%
   of Apple's capital height), on the same baseline. */
.btn--store .store__play { width: 6.8rem; height: auto; }
/* The APK's artwork starts at the same spot as Apple's logo. */
.btn--store.stores__apk { justify-content: flex-start; padding-left: 0.7rem; }
.stores__later[hidden] { display: none; }
.stores__later { display: grid; justify-items: center; gap: 0.3rem; flex: none; }
.btn--store.is-later { cursor: default; }
.btn--store.is-later:hover { --btn: #161616; }
.btn--store.is-later:active { transform: none; }
.btn--store.is-later img { opacity: 0.4; filter: grayscale(1); }
.stores__soon {
  font-family: var(--pixel); font-size: 0.75rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--gold);
}
/* Pop-ups: what to know before the APK, and how to join the Google Play test. */
.popup {
  width: min(28rem, calc(100vw - 2rem)); margin: auto; padding: 0;
  color: var(--text); background: #14111f; border: 0;
}
.popup__in { padding: 1.5rem; }
.popup::backdrop { background: rgb(5 4 10 / 0.75); }
.popup__title { font-size: 1.125rem; line-height: 1.3; }
.popup__list { margin: 0.9rem 0 1.25rem; padding-left: 1.1rem; list-style: square; color: var(--dim); font-size: 0.9375rem; line-height: 1.5; display: grid; gap: 0.5rem; }
.popup__go { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.popup__steps { display: grid; gap: 1.1rem; margin: 1rem 0 1.4rem; }
.popup__steps li { display: flex; gap: 0.85rem; align-items: flex-start; }
.popup__steps .step__n { flex: none; width: 1.9rem; height: 1.9rem; font-size: 1rem; }
.popup__steps p { color: var(--dim); font-size: 0.9375rem; line-height: 1.5; }
.popup__steps b { color: var(--text); font-weight: 600; }
.popup__steps .btn { margin-top: 0.65rem; }
.stores__test { color: var(--dim); font-size: 0.875rem; }
.stores__test a { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }
