@font-face {
  font-family: Bricolage;
  src: url(assets/display.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(assets/body.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(assets/medium.woff2) format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url(assets/mono.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #191a20;
  --border: #34343d;
  --muted: #b8b8c3;
  --quiet: #a3a4b1;
  --white: #f4f3f6;
  --lime: #c0f687;
  --purple: #b79bfa;
  --mono: Plex, monospace;
  --head: Bricolage, Arial, sans-serif;
  --offset: 105px;
  font-family: DM, Arial, sans-serif;
  color: var(--white);
  background: var(--bg);
  scroll-padding-top: var(--offset);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary,
select,
input[type="range"],
input[type="checkbox"] {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  color: var(--white);
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
section:focus {
  outline: 0;
}
button,
summary,
a {
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
button:hover:not(:disabled),
summary:hover {
  color: var(--lime);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button > .ico,
a > .ico,
span > .ico,
label > .ico {
  flex-shrink: 0;
}
.symbols {
  display: none;
}
.ico {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.shell {
  max-width: 1352px;
  width: calc(100% - clamp(48px, 9vw, 160px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  z-index: 20;
  top: -90px;
  padding: 12px;
  background: var(--lime);
  color: #101513;
}
.skip:focus {
  top: 8px;
}
.mast {
  border-bottom: 1px solid #2b2c31;
  background: #141518;
}
.mast-inner,
.mast-actions,
.brand,
.hero-actions,
.self-paced,
.dictionary-open,
.audio-toggle,
.progress > div,
.lab-title,
.sandbox-tag,
.control-heading,
.control-row,
.button-row,
.lab-head,
.chapter-kicker,
.feedback,
.range-label,
.post-route,
.options,
.bin,
.hardware,
.drawer-top,
.search-wrap {
  display: flex;
  align-items: center;
}
.mast-inner {
  height: 68px;
  justify-content: space-between;
}
.brand {
  gap: 0;
  text-decoration: none;
  font-family: var(--head);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1.15px;
  white-space: nowrap;
}
.brand img {
  margin-right: 10px;
  image-rendering: pixelated;
}
.brand span {
  color: var(--lime);
}
.mast-actions {
  gap: 20px;
}
.dictionary-open {
  gap: 9px;
  color: #d3d3da;
  font-size: 14px;
}
.audio-toggle {
  border: 1px solid var(--border);
  border-radius: 7px;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #bec0ca;
}
.progress {
  width: 143px;
  border-left: 1px solid var(--border);
  padding-left: 22px;
}
.progress > div {
  justify-content: space-between;
  gap: 4px;
}
.progress span,
.progress b {
  font: 10px var(--mono);
  letter-spacing: 0.7px;
}
.progress span {
  color: #a7a7b1;
}
.progress b {
  color: var(--lime);
}
.segments {
  margin-top: 7px;
}
.segments i {
  height: 4px;
  background: #3a3c3d;
  flex: 1;
  border-radius: 1px;
}
.segments i.done {
  background: var(--lime);
}
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 70%, #201a3122, transparent 53%), var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  min-height: 397px;
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 30px 0 33px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4afd9;
  background: #211c29;
  border: 1px solid #3b3247;
  border-radius: 5px;
  padding: 5px 9px;
  font: 10.5px var(--mono);
  letter-spacing: 1.1px;
}
.hero-eyebrow .ico {
  width: 14px;
  height: 14px;
  color: var(--purple);
}
h1 {
  font: 800 clamp(62px, 5.65vw, 86px)/0.94 var(--head);
  letter-spacing: -0.062em;
  margin: 17px 0 14px;
}
h1 span {
  color: var(--lime);
}
.hero-copy > p {
  font-size: clamp(15px, 1.17vw, 18px);
  line-height: 1.55;
  max-width: 445px;
  color: #c1c1cb;
}
.hero-actions {
  gap: 21px;
  margin-top: 21px;
}
.primary,
.secondary,
.options button,
.factor-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 10px 16px;
  min-height: 41px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.primary {
  background: var(--lime);
  color: #19220e;
  border: 1px solid #baf580;
}
.primary:hover:not(:disabled) {
  background: #d7ffad;
  color: #111b0a;
  box-shadow: 0 2px 12px #c0f68713;
}
.primary:active,
.secondary:active {
  transform: translateY(1px);
}
.primary.start {
  padding: 11px 18px;
  gap: 9px;
}
.start .ico {
  width: 14px;
  height: 14px;
}
.self-paced {
  color: var(--quiet);
  font: 12px var(--mono);
  gap: 7px;
}
.self-paced .ico {
  width: 14px;
  height: 14px;
}
.hero-art {
  position: relative;
  align-self: stretch;
  isolation: isolate;
  margin-left: 0;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 0 -20% 0 -18%;
  background: radial-gradient(ellipse at 55% 53%, #7050a12b, transparent 60%);
  z-index: -1;
}
.space-grid {
  position: absolute;
  inset: 2% -12% 1% -17%;
  background-image:
    linear-gradient(#8973a60c 1px, transparent 1px),
    linear-gradient(90deg, #8973a60c 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse, #000 26%, transparent 77%);
}
.grid-floor {
  position: absolute;
  inset: 0 -12% 4% -15%;
  background: url(assets/terrain.svg) center bottom / 100% 100% no-repeat;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 18%,
    #000 87%,
    transparent
  );
}
.atom {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px #9c62e91c);
  transform: translateY(-1%);
}
.bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0.45;
  border-color: #846d9a;
  border-style: solid;
}
.tl {
  top: 12%;
  left: 6%;
  border-width: 1px 0 0 1px;
}
.tr {
  top: 12%;
  right: 1%;
  border-width: 1px 1px 0 0;
}
.bl {
  bottom: 10%;
  left: 6%;
  border-width: 0 0 1px 1px;
}
.br {
  bottom: 10%;
  right: 1%;
  border-width: 0 1px 1px 0;
}
.art-caption {
  position: absolute;
  right: 4%;
  bottom: 9.3%;
  padding: 3px 7px;
  background: #131318;
  color: #b6a5c9;
  font: 9px var(--mono);
  letter-spacing: 1px;
}
.art-caption em {
  margin: 0 3px;
  font-style: normal;
  color: #696174;
}
.art-caption i,
.sandbox-tag i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--lime);
  margin-right: 4px;
}
.map-wrap {
  position: sticky;
  top: 0;
  z-index: 5;
  border-block: 1px solid #2f3037;
  background: #141518;
  box-shadow: 0 8px 20px #0000000b;
}
.chapter-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 15px 0;
  scroll-target-group: auto;
}
.chapter-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #34343c;
  border-radius: 8px;
  text-decoration: none;
  background: #1b1c21;
  position: relative;
  min-width: 0;
}
.chapter-link img {
  image-rendering: pixelated;
  object-fit: contain;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.chapter-link small,
.chapter-link strong {
  display: block;
  white-space: nowrap;
}
.chapter-link small,
.stage-label,
.state-label,
.chip,
.range-ends,
.mini-label {
  font: 10px var(--mono);
  letter-spacing: 1px;
  color: var(--quiet);
}
.chapter-link strong {
  font-size: 15px;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.22;
}
.chapter-link[aria-current="step"] {
  border-color: #92b46e;
  background: #242b20;
  box-shadow: inset 0 0 0 1px #9dbf7312;
}
.chapter-link[aria-current="step"] small,
.chapter-link[aria-current="step"] strong {
  color: var(--lime);
}
.chapter-link[aria-current="step"]:after {
  position: absolute;
  content: "";
  height: 3px;
  width: 15px;
  bottom: -1px;
  left: calc(50% - 7.5px);
  background: var(--lime);
  border-radius: 2px;
}
.chapter-link:target-current {
  border-color: #92b46e;
}
.chapter-link:hover {
  border-color: #777280;
  background: #23232a;
}
.chapter,
.quiz {
  padding-top: 35px;
  padding-bottom: 38px;
}
.chapter + .chapter,
.quiz {
  border-top: 1px solid var(--border);
}
.chapter-kicker {
  gap: 10px;
  color: #acacb8;
  font: 10.5px var(--mono);
  letter-spacing: 1.1px;
}
.chapter-kicker span {
  color: var(--lime);
  font-weight: 500;
}
.chapter-kicker b {
  font-weight: 400;
  color: #61636d;
}
h2 {
  font: 800 clamp(29px, 2.65vw, 41px)/1.14 var(--head);
  letter-spacing: -0.045em;
  margin: 8px 0 7px;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 1000px;
}
.term {
  padding: 0;
  font: inherit;
  color: var(--purple);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.term:hover {
  color: #decdfa;
}
.lab {
  background: var(--panel);
  border: 1px solid #3a3943;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 21px;
}
.lab-head {
  padding: 15px 20px;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(110deg, #201d29, #1b1b21 75%);
}
.lab-title {
  gap: 12px;
}
.lab-icon {
  background: #30283d;
  border: 1px solid #453751;
  border-radius: 7px;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: #c4a8f3;
}
.lab-icon .ico {
  width: 20px;
  height: 20px;
}
h3 {
  font: 800 22px/1.2 var(--head);
  letter-spacing: -0.7px;
}
.sandbox-tag {
  font: 11px var(--mono);
  color: #bdb4c9;
  gap: 6px;
}
.sandbox-tag i {
  width: 5px;
  height: 5px;
  background: #bc9ae7;
  border-radius: 1px;
  margin: 0;
}
.coin-lab,
.experiment {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr);
}
.grid-stage {
  background-color: #14151a;
  background-image: radial-gradient(#42404b 1px, transparent 1px);
  background-size: 17px 17px;
  position: relative;
  overflow: hidden;
}
.coin-scene {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  padding: 19px 12px;
  min-height: 195px;
}
.bit-half,
.qubit-half {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 9px;
  position: relative;
}
.bit-half {
  border-right: 1px dashed #48474c;
}
.stage-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c6c6ce;
  font-size: 10px;
  letter-spacing: 0.9px;
}
.square-mark,
.circle-mark {
  width: 7px;
  height: 7px;
  background: #bfdf96;
  display: inline-block;
}
.circle-mark {
  background: #c4a4ff;
  border-radius: 50%;
}
.state-label {
  font-size: 10px;
  color: #b7b6c3;
}
.bit-half img,
.coins img,
.hardware img {
  image-rendering: pixelated;
}
.bit-half button {
  height: 85px;
  display: grid;
  place-items: center;
  width: 90px;
  border-radius: 7px;
}
.bit-half button:hover {
  background: #a6c77712;
}
.bit-half button[aria-pressed="true"] img {
  transform: rotate(180deg);
  filter: drop-shadow(0 0 7px #c4ff8755);
}
.coins {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  min-height: 82px;
}
.coins img {
  width: 61px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(1px 5px 7px #9772dd25);
}
.coins[data-count="4"] {
  gap: 4px;
}
.coins[data-count="4"] img {
  width: min(21%, 47px);
}
.coins.linked:before {
  position: absolute;
  content: "";
  width: 65px;
  left: calc(50% - 36px);
  height: 3px;
  top: 50%;
  background: #c4a3ff;
  box-shadow: 0 0 10px #b58afe;
}
.coins.linked[data-count="4"]:before {
  left: 15%;
  width: 26%;
}
.coin-unit {
  display: contents;
}
.coins img {
  position: relative;
}
.spinning img {
  animation: spin 0.83s linear infinite;
}
.spinning img:nth-child(even) {
  animation-delay: -0.2s;
}
.coins.observed:after {
  content: "◉";
  font-size: 23px;
  color: #e1c8ff;
  position: absolute;
  right: 8%;
  top: 2%;
  animation: glimpse 0.7s forwards;
}
@keyframes glimpse {
  to {
    opacity: 0;
  }
}
@keyframes spin {
  0%,
  100% {
    transform: scaleX(1) translateY(0);
  }
  25% {
    transform: scaleX(0.12) translateY(-4px);
  }
  50% {
    transform: scaleX(-1) translateY(0);
  }
  75% {
    transform: scaleX(0.12) translateY(-4px);
  }
}
.lab-controls {
  border-left: 1px solid var(--border);
  padding: 17px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}
.control-heading,
.control-row,
.range-label {
  justify-content: space-between;
  gap: 10px;
}
h4 {
  font-size: 16px;
  letter-spacing: -0.3px;
}
.control-heading .icon-btn {
  width: 26px;
  height: 26px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 6px;
}
.icon-btn:hover {
  background: #33313c;
}
.control-row {
  color: #c9c8d1;
  font-size: 14px;
  min-height: 26px;
}
.control-row label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.control-row .ico {
  width: 15px;
}
.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #121317;
}
.segmented button {
  font: 12px var(--mono);
  border-radius: 3px;
  padding: 3px 10px;
  color: #a6a5b1;
}
.segmented button[aria-pressed="true"] {
  background: #3a2f4e;
  color: #dcc5ff;
}
.toggle {
  appearance: none;
  position: relative;
  background: #414149;
  border: 1px solid #585760;
  width: 33px;
  height: 19px;
  display: block;
  border-radius: 30px;
  margin: 0;
}
.toggle:after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  background: #d0d0d6;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}
.toggle:checked {
  background: #657b49;
  border-color: var(--lime);
}
.toggle:checked:after {
  transform: translateX(13px);
  background: var(--lime);
}
.button-row {
  gap: 8px;
  flex-wrap: wrap;
}
.lab-controls > .button-row > * {
  flex: 1;
}
.secondary,
.options button {
  border: 1px solid #47464f;
  background: #24242c;
  color: #e5e2eb;
}
.secondary:hover,
.options button:hover {
  background: #303037;
  border-color: #696375;
}
.feedback {
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 13px 20px;
  color: #b9bac4;
  font-size: 13px;
  line-height: 1.55;
  background: #191a20;
}
.feedback > .ico {
  width: 15px;
  min-width: 15px;
  color: var(--purple);
}
.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 1000px;
}
.note > .ico {
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 4px;
}
.lab-controls p,
.lesson-detail p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.lab-controls select,
.search-wrap input,
#factor {
  background: #17171c;
  border: 1px solid #47454f;
  border-radius: 5px;
  color: var(--white);
  padding: 8px 10px;
  min-width: 0;
}
.color-select {
  display: flex;
  gap: 10px;
}
.color-select label {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
}
.color-select select {
  width: 100%;
  display: block;
  margin-top: 5px;
}
.options {
  gap: 8px;
  flex-wrap: wrap;
}
.options button {
  font-size: 13px;
  min-height: 36px;
  padding: 7px 12px;
}
.options button[aria-pressed="true"] {
  border-color: #ad91d1;
  background: #352a43;
  color: #ddc5fc;
}
.paint-stage,
.capsule-stage,
.dot-stage,
.maze-stage {
  display: grid;
  place-items: center;
  padding: 20px;
  min-height: 200px;
}
.paint-jars,
.paint-jars > div {
  display: flex;
  align-items: center;
  justify-content: center;
}
.paint-jars {
  gap: clamp(8px, 2vw, 30px);
  width: 100%;
}
.paint-jars > div {
  flex-direction: column;
  gap: 12px;
}
.paint-jars span {
  font: 12px var(--mono);
  color: var(--muted);
}
.paint-jars b {
  color: #85858c;
}
.jar {
  height: 76px;
  width: 58px;
  border: 3px solid #b1aabb;
  border-top: 7px solid #dad7df;
  border-radius: 5px 5px 12px 12px;
  background: linear-gradient(
    to top,
    var(--paint, transparent) 65%,
    #ffffff0b 65%
  );
  box-shadow:
    inset 5px 0 #ffffff1a,
    6px 6px #0003;
  transform: rotate(-4deg);
}
#jar-b {
  transform: rotate(4deg);
}
#jar-mix {
  transform: none;
}
#unmix-challenge {
  border-top: 1px solid var(--border);
  padding: 15px 20px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend {
  margin-bottom: 12px;
}
.lesson-detail {
  padding: 15px 18px;
  background: #17181d;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 15px 0;
}
.lesson-detail summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  list-style: none;
}
.lesson-detail summary::-webkit-details-marker {
  display: none;
}
.lesson-detail summary > .ico:first-child {
  color: var(--purple);
}
.lesson-detail summary > .ico:last-child {
  margin-left: auto;
}
.lesson-detail[open] summary > .ico:last-child {
  transform: rotate(180deg);
}
.lesson-detail[open] > div {
  padding-top: 14px;
}
.prime-task,
#factor-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0;
}
.prime-task strong {
  font: 20px var(--mono);
}
#factor-form label {
  font-size: 14px;
}
#factor {
  width: 110px;
}
#factor-time {
  color: var(--lime);
  font: 13px var(--mono);
}
.post-route {
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}
.post-route span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c0bfcb;
}
.post-route .ico {
  color: var(--purple);
}
.post-route i {
  display: block;
  width: 35px;
  border-top: 2px dashed #57525d;
}
#maze {
  max-width: 530px;
  width: 100%;
}
#race-paths path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke: #bd9bed;
}
#race-paths .found {
  stroke: var(--lime);
}
.capsule-stage {
  align-content: center;
  gap: 14px;
}
.safe {
  width: 94px;
  height: 82px;
  border: 5px solid #91a7bd;
  background: #455469;
  border-radius: 8px;
  box-shadow: 7px 6px #293342;
  padding: 6px;
}
.safe-door {
  height: 100%;
  border: 3px solid #abbcd0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 3px;
}
.dial {
  color: #d7e0e7;
  font-size: 28px;
  background: #344354;
  border: 3px solid #8fa4b5;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 29px;
  text-align: center;
}
.handle {
  width: 5px;
  height: 19px;
  background: #c4d1de;
}
.capsule-stage > #safe-year {
  font: 22px var(--mono);
  color: #c4d9ef;
}
.secrets {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.range-label {
  font-size: 14px;
}
.range-label output,
.chip {
  color: var(--lime);
  font-family: var(--mono);
}
input[type="range"] {
  accent-color: var(--lime);
  width: 100%;
  margin: 2px 0;
  height: 23px;
}
.range-ends {
  display: flex;
  justify-content: space-between;
  margin-top: -12px;
}
.dot-stage {
  padding: 12px;
  min-height: 260px;
}
#lattice {
  width: 100%;
  max-width: 470px;
}
.lattice-point {
  cursor: pointer;
  outline: 0;
}
.lattice-point .dot-hit {
  fill: transparent;
}
.lattice-point:focus .dot,
.lattice-point:hover .dot {
  stroke: var(--lime);
  stroke-width: 3;
}
.sort-game {
  padding: 20px;
}
.sort-game .control-heading p {
  font-size: 15px;
  color: var(--muted);
}
.chip {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 8px;
  white-space: nowrap;
}
.sort-game .options {
  margin: 17px 0;
}
.bins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bin {
  flex-direction: column;
  gap: 5px;
  padding: 20px;
  border: 1px dashed #60616c;
  background: #191c21;
  border-radius: 7px;
}
.bin .ico {
  color: var(--lime);
  width: 30px;
  height: 30px;
}
.bin:nth-child(2) .ico {
  color: var(--purple);
}
.bin small {
  color: var(--muted);
}
.bin.drag-over {
  background: #303827;
  border-color: var(--lime);
}
.hardware {
  gap: 20px;
}
.hardware h3 {
  margin-bottom: 6px;
}
.hardware .options {
  margin-top: 12px;
}
#hardware-note:not(:empty) {
  margin-top: 12px;
}
.quiz-box {
  margin-top: 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.quiz-box h3 {
  margin: 10px 0 14px;
}
.quiz-box .button-row,
.quiz-box .options {
  margin-top: 14px;
}
.quiz-box p {
  line-height: 1.6;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--border);
  padding: 25px 0;
  color: var(--quiet);
}
footer > .shell,
footer > .shell > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
footer .brand {
  font-size: 17px;
  color: var(--white);
}
footer a {
  font-size: 13px;
  text-underline-offset: 3px;
}
dialog {
  width: min(560px, calc(100% - 24px));
  max-height: 75dvh;
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  border: 1px solid #49454f;
  background: #1d1d25;
  color: var(--white);
  padding: 20px 24px 26px;
  box-shadow: 0 -15px 100px #0008;
}
dialog::backdrop {
  background: #050509a8;
}
.drawer-top {
  justify-content: space-between;
}
.drawer-top + h2 {
  margin-top: 0;
}
.search-wrap {
  position: relative;
  margin: 16px 0 8px;
}
.search-wrap > .ico {
  position: absolute;
  left: 12px;
  color: var(--quiet);
}
.search-wrap input {
  width: 100%;
  padding: 11px 14px 11px 40px;
}
.dict-entry {
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.dict-entry header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dict-entry h3 {
  font-size: 18px;
  color: #dac4ff;
}
.dict-entry p,
#speech-status {
  line-height: 1.6;
  font-size: 15px;
  color: var(--muted);
}
#dict-entries {
  overflow: auto;
  max-height: 40dvh;
  overscroll-behavior: contain;
  padding: 4px;
}
.no-entries {
  padding: 20px;
}
.prob {
  height: 5px;
  width: 70%;
  background: #38313f;
  border-radius: 3px;
  overflow: hidden;
}
.prob i {
  display: block;
  background: var(--purple);
  width: 50%;
  height: 100%;
}
.prob[hidden],
[hidden] {
  display: none !important;
}
.prob.moving i {
  animation: meter 2.8s ease-in-out infinite alternate;
  transform-origin: left;
}
@keyframes meter {
  from {
    transform: scaleX(0.5);
  }
  to {
    transform: scaleX(1.5);
  }
}
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-art {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    .post-route span {
      animation: arrival linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    @keyframes drift {
      to {
        transform: translateY(22px);
      }
    }
    @keyframes arrival {
      from {
        transform: translateX(-10px);
        opacity: 1;
      }
      to {
        transform: none;
        opacity: 1;
      }
    }
  }
}
@media (min-width: 1550px) {
  .hero-inner {
    min-height: 425px;
  }
}
@media (max-width: 1100px) {
  .chapter-link {
    padding: 11px 9px;
    gap: 8px;
  }
  .chapter-map {
    gap: 7px;
  }
  .chapter-link img {
    width: 26px;
    height: 26px;
  }
  .chapter-link strong {
    font-size: 14px;
  }
  .chapter-link small {
    font-size: 9px;
  }
  .hero-inner {
    min-height: 368px;
  }
  .hero-copy > p {
    max-width: 390px;
  }
  .shell {
    width: calc(100% - 8vw);
  }
  .hero-art {
    margin-left: -4%;
  }
}
@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr 0.95fr;
    min-height: 355px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero-art {
    margin: 0 -6% 0 -9%;
  }
  .chapter-map {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #48434f transparent;
    gap: 7px;
    padding: 11px 0;
  }
  .map-wrap .shell {
    width: 100%;
    padding-inline: 4vw;
  }
  .chapter-link {
    flex: 1 0 118px;
    padding: 10px 8px;
  }
  .coin-lab,
  .experiment {
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 1fr);
  }
  .lab-controls {
    padding: 15px;
  }
  .coin-scene {
    padding-inline: 6px;
  }
  .mast-actions {
    gap: 12px;
  }
  .art-caption {
    font-size: 8px;
  }
  .lab-title h3 {
    font-size: 20px;
  }
  .hero-actions {
    gap: 12px;
  }
  .self-paced {
    font-size: 10px;
  }
  .hero-copy {
    padding-block: 28px;
  }
  .shell {
    width: 92%;
  }
  :root {
    --offset: 89px;
  }
}
@media (max-width: 600px) {
  .mast-inner {
    height: 59px;
  }
  .brand {
    font-size: 19px;
    letter-spacing: -0.9px;
  }
  .brand img {
    width: 29px;
    height: 29px;
    margin-right: 6px;
  }
  .mast-actions {
    gap: 8px;
  }
  .audio-toggle {
    width: 31px;
    height: 31px;
  }
  .dictionary-open {
    padding: 5px;
  }
  .dictionary-open span {
    display: none;
  }
  .dictionary-open .ico {
    width: 19px;
    height: 19px;
  }
  .progress {
    width: 57px;
    padding-left: 7px;
  }
  .progress span {
    display: none;
  }
  .progress > div {
    justify-content: flex-end;
    gap: 2px;
  }
  .segments {
    margin-top: 4px;
  }
  .progress b {
    font-size: 9px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-copy {
    padding: 26px 0 20px;
  }
  .hero-copy > p {
    font-size: 15px;
    max-width: 85%;
    line-height: 1.5;
  }
  .hero-copy h1 {
    font-size: 63px;
    margin: 16px 0 11px;
  }
  .hero-eyebrow {
    font-size: 9px;
    padding: 4px 7px;
    letter-spacing: 0.8px;
  }
  .hero-art {
    position: absolute;
    right: -7%;
    width: 52%;
    height: 165px;
    top: 23px;
    z-index: 0;
    opacity: 0.9;
  }
  .art-caption,
  .bracket {
    display: none;
  }
  .hero-actions {
    margin-top: 15px;
    gap: 14px;
  }
  .self-paced {
    font-size: 11px;
  }
  .hero-actions .start {
    min-height: 40px;
    padding: 9px 13px;
  }
  .chapter-map {
    padding: 9px 0;
  }
  .chapter-link {
    flex: 0 0 119px;
    border-radius: 6px;
    gap: 6px;
  }
  .chapter-link strong {
    font-size: 13px;
  }
  .chapter-link small {
    font-size: 8.5px;
  }
  .chapter {
    padding-top: 25px;
    padding-bottom: 27px;
  }
  .chapter-kicker {
    font-size: 10px;
  }
  .lead {
    font-size: 15px;
    line-height: 1.55;
  }
  h2 {
    font-size: 29px;
    margin-top: 7px;
  }
  .lab {
    margin-top: 16px;
  }
  .lab-head {
    padding: 12px;
  }
  .lab-title {
    gap: 8px;
  }
  .lab-title h3 {
    font-size: 19px;
  }
  .lab-icon {
    width: 29px;
    height: 29px;
  }
  .sandbox-tag {
    font-size: 0;
    gap: 0;
  }
  .sandbox-tag i {
    width: 7px;
    height: 7px;
  }
  .coin-lab,
  .experiment {
    grid-template-columns: 1fr;
  }
  .lab-controls {
    border-left: 0;
    border-top: 1px solid var(--border);
    gap: 12px;
    padding: 16px;
  }
  .coin-scene {
    min-height: 176px;
  }
  .feedback {
    padding: 12px 14px;
    font-size: 13px;
  }
  .note {
    font-size: 14px;
  }
  .hardware {
    align-items: flex-start;
    gap: 8px;
  }
  .hardware img {
    width: 50px;
    height: 50px;
  }
  .hardware h3 {
    font-size: 19px;
  }
  .sort-game {
    padding: 14px;
  }
  .sort-game .control-heading {
    align-items: flex-start;
  }
  .sort-game .control-heading p {
    font-size: 14px;
  }
  .bin {
    padding: 14px 6px;
  }
  .bin strong {
    font-size: 14px;
  }
  .bin small {
    font-size: 11px;
  }
  .post-route {
    gap: 4px;
  }
  .post-route span {
    gap: 4px;
    font-size: 11px;
  }
  .post-route i {
    width: 10px;
  }
  .maze-stage,
  .paint-stage,
  .capsule-stage {
    min-height: 175px;
  }
  .dot-stage {
    min-height: 190px;
  }
  .secrets {
    grid-template-columns: 1fr 1fr;
  }
  .lesson-detail {
    padding: 13px;
  }
  .prime-task strong {
    font-size: 17px;
  }
  footer > .shell {
    align-items: flex-start;
    flex-direction: column;
  }
  footer > .shell > div {
    gap: 12px;
    flex-wrap: wrap;
  }
  footer a {
    font-size: 12px;
  }
  .quiz-box {
    padding: 16px;
  }
  :root {
    --offset: 80px;
  }
}
@media (max-width: 370px) {
  .hero-art {
    opacity: 0.65;
    right: -14%;
  }
  .hero-copy h1 {
    font-size: 56px;
  }
  .hero-copy > p {
    max-width: 99%;
  }
  .mast-actions {
    gap: 3px;
  }
  .brand {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .coins.observed:after {
    display: none;
  }
}
.coin-face {
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.coins[data-count="4"] .coin-face {
  width: 22%;
}
.coins[data-count="4"] .coin-face img {
  width: 100%;
  max-width: 46px;
}
.coins.offscreen * {
  animation-play-state: paused;
}
.phonetic {
  font: 11px var(--mono);
  color: var(--quiet);
}
.dict-entry p {
  margin-top: 5px;
}
#quiz-reply p {
  margin: 15px 0;
}
.paint-stage.concealed #jar-a,
.paint-stage.concealed #jar-b {
  --paint: #646270 !important;
}
@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: clamp(43px, 12vw, 60px);
  }
  .hero-art {
    width: 48%;
    height: 132px;
    top: 43px;
    right: -3%;
    opacity: 1;
  }
  .hero-copy > p {
    max-width: 98%;
  }
}
.warehouse {
  width: min(96%, 420px);
  height: auto;
  image-rendering: pixelated;
}
.capsule-stage {
  gap: 4px;
}
.construction {
  align-items: center;
}
.construction img {
  height: 75px;
  object-fit: contain;
  image-rendering: pixelated;
}
.big-lock {
  margin-top: 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 16px;
  background: var(--bg);
}
.big-lock #large-number {
  font: 12px/1.4 var(--mono);
  overflow-wrap: anywhere;
  color: var(--quiet);
  margin: 9px 0;
}
.big-lock #age-clock {
  display: block;
  font: 20px var(--mono);
  color: var(--lime);
  margin: 8px 0;
}
.toy-key {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font: 10px var(--mono);
  letter-spacing: 1px;
  padding: 4px 7px;
  border: 1px solid #63834a;
  color: var(--lime);
  background: #222e20;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .construction {
    flex-direction: column;
    align-items: flex-start;
  }
  .warehouse {
    max-width: 280px;
  }
}
.fridge-model {
  position: relative;
  flex: 0 0 142px;
}
.fridge-model img {
  display: block;
  width: 138px;
  height: 148px;
}
.hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid #9981b5;
  border-radius: 50%;
  background: #292331;
  color: #dfc1ff;
  font: 11px var(--mono);
  width: 24px;
  height: 24px;
}
.hotspot[aria-pressed="true"] {
  border-color: var(--lime);
  color: var(--lime);
  background: #303b24;
}
.hs-cold {
  left: 14%;
  top: 63%;
}
.hs-errors {
  left: 57%;
  bottom: 0;
}
.hs-cost {
  right: 2%;
  top: 12%;
}
@media (max-width: 600px) {
  .hardware {
    flex-wrap: wrap;
  }
  .fridge-model {
    flex-basis: 115px;
    margin: auto;
  }
  .fridge-model img {
    width: 115px;
    height: 124px;
  }
  .hardware > div:last-child {
    width: 100%;
  }
}
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    .warehouse,
    .construction img,
    .fridge-model {
      animation: inspect linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }
    @keyframes inspect {
      from {
        transform: translateY(8px) scale(0.96);
      }
      to {
        transform: none;
      }
    }
  }
}
