/* The original palette and page structure remain intact. This layer adds spatial and scientific motion. */
.science-process {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7e1ca;
  border-radius: 6px;
  background: linear-gradient(135deg, #f9fbf2, #edf3e5);
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.process-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 8px monospace;
  color: #80956b;
  letter-spacing: 0.04em;
}
.process-label span:last-child {
  font-family: system-ui, sans-serif;
  font-size: 8px;
  white-space: nowrap;
}
.science-stage {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  contain: paint;
}
.science-stage text {
  font-family: system-ui, 'Microsoft YaHei', sans-serif;
  text-anchor: middle;
  fill: #5c7753;
  font-size: 17px;
  font-weight: 500;
}
.science-stage .diagram-small {
  font-size: 13px;
  fill: #7c8e6c;
  font-weight: 400;
}
.science-stage .chemical-type,
.science-stage .equation {
  font-family: Georgia, 'Microsoft YaHei', serif;
  font-size: 20px;
  fill: #638452;
}
.science-stage .equation {
  font-size: 19px;
}
.diagram-zone {
  fill: #fdfef7;
  stroke: #d9e4cf;
  stroke-width: 1.5;
}
.molecule-bond {
  fill: none;
  stroke: #8da484;
  stroke-width: 3;
  stroke-linecap: round;
}
.diagram-arrow {
  fill: none;
  stroke: #9db48d;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.diagram-atom circle {
  fill: #4d7561;
  stroke: #f9fcf0;
  stroke-width: 2;
}
.diagram-atom text {
  fill: #fffdf2;
  font-size: 16px;
  font-weight: 600;
}
.diagram-atom.oxygen circle {
  fill: #ca8d76;
}
.diagram-atom.hydrogen circle {
  fill: #d7bc78;
}
.diagram-atom.hydrogen text {
  fill: #725d2f;
}
.diagram-atom.dissociated circle {
  fill: #e6e4cb;
}
.diagram-atom.dissociated text {
  fill: #a1996a;
}
.diagram-atom.undissociated circle {
  fill: #adc794;
}
.diagram-atom.undissociated text {
  fill: #4d6d3d;
}
.science-stage .charge {
  fill: #ad8e45;
  font-size: 26px;
}
.electron-transfer {
  stroke: #81a16c;
  stroke-width: 3;
  stroke-dasharray: 5 5;
  fill: none;
}
.phenol-ring {
  fill: #e6efd3;
  stroke: #a7bd8e;
  stroke-width: 3;
}
.quinone-ring {
  fill: #e7dca9;
  stroke: #baab71;
  stroke-width: 3;
}
.cell-membrane {
  fill: #edf3e4;
  stroke: #9ab78b;
  stroke-width: 3;
}
.cell-membrane.inner {
  fill: #dfebd4;
  stroke: #abc59a;
  stroke-width: 2;
}
.cell-activity {
  fill: none;
  stroke: #87a971;
  stroke-width: 4;
  stroke-linecap: round;
}
.pipette-body {
  fill: #d9e6db;
  stroke: #91ad9d;
  stroke-width: 2;
}
.beaker-glass {
  fill: #f1f7edaa;
  stroke: #91b09a;
  stroke-width: 2;
}
.science-stage .gas-bubble {
  animation: none;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid #dfe7d6;
  padding-top: 11px;
}
.process-steps > span {
  position: relative;
  font-size: 8px;
  line-height: 1.6;
  color: #a0ae8b;
  text-align: center;
  overflow-wrap: anywhere;
}
.process-steps i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #cbdabd;
  border-radius: 50%;
  font: 9px monospace;
  line-height: 16px;
  margin: 0 auto 5px;
  position: relative;
  z-index: 1;
  background: #f2f7e9;
}
.process-steps > span:not(:last-child):after {
  content: '';
  position: absolute;
  top: 8px;
  left: 70%;
  width: calc(60% + 7px);
  height: 1px;
  background: #d9e3ce;
}
.process-steps .current {
  color: #5f7d4b;
  font-weight: 600;
}
.process-steps .current i {
  background: #799967;
  border-color: #799967;
  color: #fff;
}
.process-steps .past i {
  background: #d2e2bf;
  border-color: #b4ce9c;
  color: #729458;
}
.process-reading {
  min-height: 65px;
  padding: 12px 2px 5px;
}
.process-phase-name {
  font-size: 11px;
  color: #597a46;
  display: block;
  line-height: 1.7;
}
.process-phase-detail {
  display: block;
  font-size: 10px;
  color: #7c8e6a;
  line-height: 1.85;
  margin-top: 4px;
}
.process-player {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.process-player button {
  border: 1px solid #bccfa9;
  background: #fbfdf5;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9px;
  color: #698754;
  padding: 6px 10px;
  min-height: 31px;
  transition: background 0.2s;
}
.process-player button:hover {
  background: #e5efd8;
}
.process-player .icon {
  width: 13px;
  height: 13px;
}
.process-player button:first-child {
  background: #e6efd9;
  border-color: #b8cca2;
}
.process-mode {
  font-size: 7px;
  color: #9baa88;
  margin-left: auto;
}
.indicator-legend {
  border-top: 1px dashed #d5e0c9;
  margin-top: 10px;
  padding-top: 8px;
  font-size: 8px;
  color: #91a07c;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.7;
}
.indicator-legend i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #b8c7a7;
  display: inline-block;
  flex-shrink: 0;
}
#lab-demo {
  height: auto;
  display: block;
  margin-top: 19px;
  min-height: 320px;
}
.lab-workbench {
  align-items: stretch;
}
.molecule-panel {
  position: relative;
}
.group-focus {
  display: flex;
  margin: 13px auto 0;
  align-items: center;
  gap: 7px;
  color: #8b7b44;
  border-color: #d4c79a;
  background: #f4edda;
}
.group-focus[aria-pressed='true'] {
  background: #e9dfb7;
  border-color: #b8a866;
}
.group-focus .icon {
  width: 14px;
  height: 14px;
}
.molecule-panel .model-help {
  line-height: 1.9;
}
.demo-panel .demo-feedback {
  min-height: 0;
  margin-bottom: 14px;
}
.lab-workbench .science-note {
  font-size: 9px;
}
.motion-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #718561;
  border: 1px solid #d5e0cb;
  border-radius: 20px;
  padding: 6px 10px;
  background: transparent;
  white-space: nowrap;
  min-height: 31px;
}
.motion-toggle .icon {
  width: 14px;
  height: 14px;
}
.motion-toggle[aria-pressed='true'] {
  background: #e9f0df;
}
.header-tools {
  gap: 12px;
}
.ingredient-motion {
  margin-top: 15px;
  margin-bottom: 18px;
  border: 1px solid #dce5cf;
  border-radius: 5px;
  background: #f5f8ec;
}
.ingredient-motion > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  font-size: 10px;
  color: #748f5d;
  cursor: pointer;
  list-style: none;
}
.ingredient-motion > summary::-webkit-details-marker {
  display: none;
}
.ingredient-motion > summary .icon {
  width: 15px;
  height: 15px;
}
.ingredient-motion > summary > span {
  font-size: 8px;
  margin-left: auto;
  color: #9aaa88;
}
.ingredient-motion > summary:after {
  content: '⌄';
  font-size: 14px;
  line-height: 1;
}
.ingredient-motion[open] > summary:after {
  transform: rotate(180deg);
}
.ingredient-motion .science-process {
  border: 0;
  border-top: 1px solid #dfe8d3;
  border-radius: 0 0 5px 5px;
  padding: 11px;
}
.compact-process .process-steps {
  display: none;
}
.compact-process .process-reading {
  min-height: 54px;
  padding-top: 5px;
}
.compact-process .process-mode {
  display: none;
}
.compact-process .process-label {
  font-size: 7px;
}
.compact-process .process-label > span:last-child {
  font-size: 7px;
}
.ingredient-detail > .ingredient-motion + p {
  margin-top: 10px;
}
.package-reveal {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 15px -1px 20px;
  padding: 9px 17px 11px;
  background: linear-gradient(120deg, #eef2e4, #f9faf1);
  border: 1px solid #dfe7d2;
  border-radius: 5px;
  min-height: 143px;
  perspective: 800px;
  position: relative;
  overflow: hidden;
}
.package-platform {
  position: relative;
  width: 90px;
  height: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  isolation: isolate;
}
.package-platform:after {
  content: '';
  position: absolute;
  bottom: 1px;
  width: 95px;
  height: 27px;
  border: 1px solid #c2d2b4;
  background: #d9e5ce;
  transform: rotateX(60deg) rotateZ(-20deg);
  z-index: -1;
  border-radius: 8px;
  box-shadow:
    0 8px 0 #b8cba9,
    0 17px 12px #729b6524;
}
.package-platform img {
  width: 115px;
  max-width: none;
  height: 137px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transform: rotateY(-14deg) rotateZ(-4deg);
  filter: drop-shadow(7px 9px 4px #5c795821);
  animation: package-unfold 0.65s var(--ease) both;
}
.package-reveal > div:last-child {
  min-width: 0;
}
.package-reveal small {
  font: 8px monospace;
  color: #9bad87;
  letter-spacing: 0.05em;
}
.package-reveal b {
  display: block;
  font-size: 16px;
  color: #6b8753;
  margin-top: 9px;
  font-weight: 600;
}
.package-reveal p {
  font-size: 10px;
  color: #81966e;
  margin-top: 6px;
  line-height: 1.85;
}
.package-reveal > div:last-child > span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #9aaa87;
  margin-top: 9px;
}
.package-reveal > div:last-child > span .icon {
  width: 11px;
  height: 11px;
}
.package-scan {
  position: absolute;
  left: -4px;
  right: -4px;
  top: 10px;
  height: 2px;
  background: #9eb58866;
  box-shadow: 0 0 10px #8ba66e55;
  z-index: 2;
  animation: package-scan 1.2s ease-in-out 1;
  opacity: 0;
}
.package-reveal[data-food='meat'] {
  background: linear-gradient(120deg, #f1ece1, #faf8ef);
}
.package-reveal[data-food='jelly'] {
  background: linear-gradient(120deg, #eeeceb, #faf9f1);
}
.shelf-grid {
  perspective: 1000px;
}
.product img {
  transform-style: preserve-3d;
  will-change: auto;
}
.product:hover img {
  transform: translateY(-9px) rotateY(-15deg) rotateZ(-3deg);
  filter: drop-shadow(9px 12px 4px #3f613527);
}
.product.selected img {
  transform: translateY(-6px) scale(1.06) rotateY(-8deg);
}
.exploration-transition .product {
  animation: shelf-place 0.65s var(--ease) backwards;
}
.exploration-transition .product:nth-child(2) {
  animation-delay: 0.06s;
}
.exploration-transition .product:nth-child(3) {
  animation-delay: 0.12s;
}
.exploration-transition .product:nth-child(4) {
  animation-delay: 0.18s;
}
.exploration-transition .product:nth-child(5) {
  animation-delay: 0.24s;
}
.exploration-transition .product:nth-child(6) {
  animation-delay: 0.3s;
}
.exploration-transition .scene-header {
  position: relative;
  overflow: hidden;
}
.exploration-transition .scene-header:after {
  content: '';
  position: absolute;
  width: 30%;
  height: 1px;
  background: #a9bd8c;
  bottom: 0;
  left: -30%;
  animation: room-coordinate 0.9s ease-out 1;
}
.network-process {
  padding: 12px;
  border-top: 1px solid #dce6cf;
}
.network-process > svg {
  display: block;
  width: 100%;
  height: auto;
}
.polymer-lines path {
  fill: none;
  stroke: #a9bd91;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 3;
  animation: polymer-build 1.5s ease-out 1;
}
.network-water circle {
  fill: #d9e9e0;
  stroke: #a9c5b7;
  stroke-width: 2;
}
.network-water text {
  font: 12px system-ui;
  fill: #80a18c;
  text-anchor: middle;
}
.network-water {
  animation: water-confinement 3s ease-in-out infinite alternate;
  animation-delay: var(--delay);
  transform-box: fill-box;
  transform-origin: center;
}
.network-process > p {
  font-size: 10px !important;
  line-height: 1.9 !important;
  color: #7f926d !important;
}
.network-process > small {
  font-size: 8px;
  line-height: 1.8;
  display: block;
  color: #9baa89;
  margin-top: 7px;
}
.meat-process .oxidation-chain {
  stroke: #c39b80;
  stroke-width: 3;
  stroke-dasharray: 10 5;
  fill: none;
  animation: chain-travel 4s linear infinite;
}
.meat-process .oxidation-node {
  fill: #f3e7d9;
  stroke: #c8ad8f;
  stroke-width: 2;
}
.meat-process .redox-shield {
  fill: #dce9cd;
  stroke: #99b17c;
  stroke-width: 2;
}
.quest-intro {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(120deg, #e7ecdc, #f3f4e7);
  border: 1px solid #cfdcc1;
  border-radius: 7px;
  margin-top: 24px;
  padding: 22px 25px;
  position: relative;
  overflow: hidden;
}
.quest-mini-island {
  height: 139px;
  width: 90px;
  position: relative;
  isolation: isolate;
  perspective: 700px;
}
.quest-mini-island:after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 1px;
  right: -10px;
  height: 25px;
  background: #ccdcbc;
  border: 1px solid #aac09d;
  border-radius: 5px;
  transform: rotateX(60deg) rotateZ(-25deg);
  z-index: -1;
  box-shadow: 0 10px 0 #b5cba4;
}
.quest-mini-island > img {
  width: 110px;
  max-width: none;
  height: 136px;
  object-fit: contain;
  transform: rotateY(-12deg) rotateZ(-6deg);
}
.quest-orbit {
  position: absolute;
  right: -9px;
  top: 3px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: #fbfbef;
  border: 1px solid #b8cca1;
  border-radius: 50%;
  color: #91aa72;
}
.quest-orbit .icon {
  width: 17px;
}
.quest-intro .eyebrow {
  font-size: 8px;
}
.quest-intro h2 {
  font-size: 23px;
  margin-top: 6px;
}
.quest-intro p {
  font-size: 11px;
  color: #7b8c68;
  margin-top: 10px;
  line-height: 1.9;
}
.quest-route-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.quest-route-preview span {
  font-size: 8px;
  color: #8da274;
  display: flex;
  gap: 5px;
  align-items: center;
}
.quest-route-preview b {
  font: 9px monospace;
  color: #b19b64;
}
.quest-intro > .button {
  font-size: 11px;
  white-space: nowrap;
  padding: 12px 16px;
}
.quest-hud {
  margin-top: 24px;
  background: #edf2e4;
  border: 1px solid #c9d9b9;
  border-radius: 6px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}
.quest-hud:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #a8bf8a;
}
.quest-hud-head {
  display: flex;
  align-items: center;
  gap: 13px;
}
.hud-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #c5d5b4;
  background: #f9fbf1;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #8aa66c;
  flex-shrink: 0;
}
.hud-icon .icon {
  width: 20px;
  height: 20px;
}
.quest-hud-head small,
.quest-hud.complete small {
  font-size: 8px;
  color: #91a37e;
  display: block;
  line-height: 1.7;
}
.quest-hud-head b,
.quest-hud.complete b {
  display: block;
  color: #5c7848;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  margin-top: 2px;
}
.quest-hud-head > .button {
  font-size: 10px;
  margin-left: auto;
  white-space: nowrap;
  min-height: 35px;
  padding: 8px 12px;
}
.quest-hud-head > .button .icon {
  width: 14px;
  height: 14px;
}
.quest-fraction {
  font: italic 17px Georgia;
  color: #a1b784;
  margin-left: auto;
  white-space: nowrap;
}
.quest-trail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #d8e4cc;
}
.quest-trail > span {
  font-size: 8px;
  color: #a0ae8d;
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.quest-trail i {
  font: 8px monospace;
  display: grid;
  place-items: center;
  border: 1px solid #d1dec1;
  background: #f7f9ef;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  flex-shrink: 0;
}
.quest-trail .done {
  color: #7d9b61;
}
.quest-trail .done i {
  background: #d3e2bf;
  border-color: #b2ca99;
}
.quest-trail .current {
  color: #5f7f48;
  font-weight: 600;
}
.quest-trail .current i {
  background: #789963;
  color: #fff;
  border-color: #789963;
  box-shadow: 0 0 0 3px #bbcfa539;
}
.quest-hud > p {
  font-size: 10px;
  color: #82966d;
  line-height: 1.85;
  margin-top: 11px;
}
.quest-hud.complete {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.quest-hud.complete > .button {
  margin-left: auto;
  font-size: 9px;
  white-space: nowrap;
}
.quest-hud.complete small {
  font-size: 8px;
}
.quest-hud.complete b {
  font-size: 12px;
}
.quest-question {
  background: #fdfcf3;
  border: 1px solid #cfddbc;
  border-radius: 7px;
  padding: 28px 30px;
  margin: 0 0 25px;
}
.quest-question > .eyebrow {
  font-size: 8px;
}
.quest-question h2 {
  font-size: 25px;
  line-height: 1.7;
  margin-top: 12px;
}
.quest-question > p {
  font-size: 11px;
  color: #8a9c74;
  margin-top: 10px;
}
.quest-question .answer-options button {
  font-size: 12px;
}
.quest-archive {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  background: #edf2e4;
  border: 1px solid #d1dec3;
  border-radius: 6px;
  padding: 28px;
  margin: 20px 0 25px;
}
.quest-archive > div > h3 {
  font-size: 23px;
  margin-top: 13px;
}
.quest-archive > div > p {
  font-size: 12px;
  color: #839a6c;
  line-height: 1.9;
  margin-top: 12px;
}
.quest-archive > div > .button {
  margin-top: 20px;
}
.quest-archive ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.quest-archive li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 1px 12px;
  align-items: center;
  position: relative;
}
.quest-archive li:not(:last-child):after {
  content: '';
  position: absolute;
  top: 26px;
  bottom: -16px;
  left: 11px;
  border-left: 1px solid #d5e1c8;
}
.quest-archive li > i {
  grid-row: 1/3;
  width: 24px;
  height: 24px;
  border: 1px solid #c9d8b9;
  background: #f6f8ec;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 10px monospace;
  color: #a2b28d;
}
.quest-archive li > span {
  font-size: 11px;
  font-weight: 600;
  color: #92a67d;
}
.quest-archive li > small {
  font-size: 9px;
  color: #a4b392;
  line-height: 1.9;
}
.quest-archive li.done > i {
  background: #cfe0b8;
  border-color: #afc995;
  color: #67864c;
}
.quest-archive li.done > span {
  color: #6d8b54;
}
.certificate {
  text-align: center;
}
.detective-medal {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 13px;
  filter: drop-shadow(0 9px 5px #64734e18);
}
.certificate.earned .detective-medal {
  animation: medal-present 0.9s var(--ease) both;
}
.certificate .eyebrow {
  display: block;
  font-size: 8px;
}
.certificate h2 {
  font-size: 23px;
  margin: 9px 0 !important;
  line-height: 1.5;
}
.certificate p {
  font-size: 11px !important;
  color: #84986f !important;
  line-height: 1.9;
  margin: 0 auto !important;
  max-width: 350px;
}
.certificate > small {
  font-size: 8px;
  color: #a3b18d;
  display: block;
  margin-top: 12px;
}
.certificate > .button {
  font-size: 11px;
  margin-top: 20px;
}
.knowledge-journal {
  margin-top: 34px;
  border-top: 1px solid #d6e1c9;
  padding-top: 27px;
}
.knowledge-journal .section-heading h2 {
  font-size: 23px;
}
.knowledge-journal .section-heading .eyebrow {
  font-size: 9px;
}
.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.journal-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 19px;
  background: #fcfdf5;
  border: 1px solid #dce6d0;
  border-radius: 5px;
  text-align: left;
  min-width: 0;
}
.journal-entry-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid #d3e1c4;
  background: #ecf3e2;
  color: #8aa671;
  border-radius: 7px;
  flex-shrink: 0;
}
.journal-entry-icon .icon {
  width: 17px;
  height: 17px;
}
.journal-entry > div {
  min-width: 0;
}
.journal-entry small {
  font-size: 8px;
  color: #9aaf82;
}
.journal-entry h3 {
  font-size: 14px;
  color: #67884e;
  margin-top: 5px;
}
.journal-entry p {
  font-size: 10px;
  color: #91a37b;
  line-height: 1.9;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.journal-entry > span:last-child {
  margin-left: auto;
  color: #a4b48c;
  font-size: 12px;
}
.journal-entry:hover {
  border-color: #a8c28e;
  background: #f6faed;
}
.journal-empty {
  border: 1px dashed #cddcbd;
  border-radius: 5px;
  padding: 25px;
  font-size: 12px;
  color: #9aad85;
  grid-column: 1/-1;
}
.apple-studio {
  position: relative;
  isolation: isolate;
}
.apple-pair {
  position: relative;
  overflow: hidden;
}
.apple-cut-sweep {
  position: absolute;
  height: 2px;
  left: 12%;
  right: 12%;
  top: 30%;
  background: linear-gradient(90deg, transparent, #ddd9bcaa, transparent);
  box-shadow: 0 0 9px #fffdf9;
  opacity: 0;
  pointer-events: none;
}
.experiment-launched .apple-cut-sweep {
  animation: apple-cut 0.95s ease-in-out 1;
}
.apple-reaction-lanes {
  padding: 0 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.apple-lane {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  isolation: isolate;
  background: #f9fbf1;
  border: 1px solid #d6e2c7;
  border-radius: 4px;
  padding: 8px 10px;
  overflow: hidden;
  min-width: 0;
}
.apple-lane > b {
  font-size: 8px;
  color: #92a57c;
  font-weight: 500;
  margin-right: 3px;
  white-space: nowrap;
}
.apple-lane > span {
  font-size: 9px;
  color: #8ca16f;
  line-height: 1.8;
  z-index: 1;
}
.apple-lane > i {
  font-size: 8px;
  font-style: normal;
  color: #b4bf9d;
  white-space: nowrap;
  z-index: 1;
}
.apple-lane > em {
  font-style: normal;
  font-size: 9px;
  color: #9d8d65;
  white-space: nowrap;
  z-index: 1;
}
.apple-lane .flow-tracer {
  position: absolute;
  left: -10px;
  bottom: 2px;
  width: 13px;
  height: 2px;
  background: #a6b77d;
  border-radius: 2px;
  opacity: 0;
}
.experiment-running .apple-lane .flow-tracer {
  animation: flow-trace 2.2s linear infinite;
}
.experiment-running .treated-lane .flow-tracer {
  animation-duration: 4.2s;
  opacity: 0.4;
}
.apple-lane:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: scaleX(var(--apple-progress, 0));
  transform-origin: left;
  height: 2px;
  background: #c0a779;
  transition: transform 0.15s linear;
  opacity: 0.7;
}
.treated-lane:before {
  transform: scaleX(var(--lane-strength, 0));
  background: #a5be85;
}
.apple-status {
  margin: 0 24px 15px;
  padding: 9px 11px;
  border: 1px solid #dbe5ce;
  background: #edf3e3;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.apple-status .live-dot {
  width: 5px;
  height: 5px;
  margin-top: 6px;
  background: #a8b885;
}
.apple-status b {
  font-weight: 400;
  font-size: 9px;
  color: #8c9f75;
  line-height: 1.9;
}
.experiment-running .apple-status {
  background: #e5efd9;
  border-color: #bfcea9;
}
.experiment-complete .apple-status {
  background: #e0ebce;
  border-color: #b3c997;
}
.experiment-complete .apple-status .live-dot {
  background: #799b58;
}
.inquiry-order {
  border: 1px solid #dde6ce;
  background: #f4f7ec;
  border-radius: 4px;
  margin-top: 17px;
  padding: 12px 14px;
}
.inquiry-order > span {
  display: block;
  font-size: 8px;
  color: #a2b08e;
}
.inquiry-order > b {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #8da474;
  margin-top: 7px;
}
.inquiry-order > small {
  font-size: 8px;
  display: block;
  line-height: 1.9;
  margin-top: 8px;
  color: #a6b593;
}
.answer-options .correct {
  animation: evidence-correct 0.45s var(--ease) 1;
}
.answer-options .wrong {
  animation: evidence-wrong 0.35s ease-out 1;
}
.level-result .result-emblem {
  animation: medal-present 0.8s var(--ease) 1;
}
.level-result .big-score {
  animation: score-confirm 0.55s var(--ease) 1;
}
#science-reward {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(365px, calc(100vw - 34px));
  z-index: 79;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
  background: #f5f8ebef;
  border: 1px solid #b2c895;
  border-radius: 7px;
  padding: 15px 18px;
  box-shadow: 0 9px 35px #34503520;
  backdrop-filter: blur(10px);
}
#science-reward.shown {
  opacity: 1;
  transform: translateY(0) scale(1);
}
#science-reward b {
  display: block;
  font-size: 12px;
  color: #597946;
  font-weight: 600;
}
#science-reward small {
  display: block;
  font-size: 9px;
  color: #8ba072;
  line-height: 1.85;
  margin-top: 5px;
}
.reward-medal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dfe9c7;
  border: 1px solid #b1c58f;
  position: relative;
  flex-shrink: 0;
  color: #7a9654;
}
.reward-medal .icon {
  width: 18px;
}
.reward-medal i {
  position: absolute;
  inset: -6px;
  border: 1px solid #c6d4a8;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.7);
}
.shown .reward-medal i {
  animation: reward-orbit 1.3s ease-out 1;
}
.shown .reward-medal i:nth-of-type(2) {
  animation-delay: 0.18s;
}
.shown .reward-medal i:nth-of-type(3) {
  animation-delay: 0.36s;
}
.notebook .certificate .detective-medal {
  width: 165px;
}
.notebook .certificate > small {
  line-height: 1.9;
}
.notebook .certificate h2 {
  font-size: 27px;
  margin: 12px 0 !important;
}
.notebook .certificate p {
  font-size: 12px !important;
}
@keyframes package-unfold {
  0% {
    transform: scale(0.73) rotateY(-60deg) rotateZ(-8deg);
    filter: drop-shadow(1px 2px 1px #66815a10);
  }
  65% {
    transform: scale(1.06) rotateY(-9deg) rotateZ(-3deg);
  }
  100% {
    transform: scale(1) rotateY(-14deg) rotateZ(-4deg);
  }
}
@keyframes package-scan {
  0% {
    top: 12px;
    opacity: 0;
  }
  30% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    top: 119px;
    opacity: 0;
  }
}
@keyframes shelf-place {
  0% {
    transform: translate3d(0, 22px, -40px) rotateY(-12deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotateY(0);
  }
}
@keyframes room-coordinate {
  from {
    left: -30%;
  }
  to {
    left: 100%;
  }
}
@keyframes polymer-build {
  from {
    stroke-dashoffset: 240;
    opacity: 0.3;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
@keyframes water-confinement {
  from {
    translate: -2px -3px;
  }
  to {
    translate: 3px 3px;
  }
}
@keyframes chain-travel {
  to {
    stroke-dashoffset: -90;
  }
}
@keyframes apple-cut {
  0% {
    top: 27%;
    opacity: 0;
  }
  35% {
    opacity: 0.9;
  }
  100% {
    top: 76%;
    opacity: 0;
  }
}
@keyframes flow-trace {
  0% {
    left: 12%;
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    left: 98%;
    opacity: 0;
  }
}
@keyframes medal-present {
  0% {
    transform: translateY(-15px) rotateY(-65deg) scale(0.75);
  }
  70% {
    transform: translateY(0) rotateY(8deg) scale(1.04);
  }
  100% {
    transform: translateY(0) rotateY(0) scale(1);
  }
}
@keyframes evidence-correct {
  0% {
    box-shadow: 0 0 0 0 #aac48a80;
  }
  100% {
    box-shadow: 0 0 0 9px #aac48a00;
  }
}
@keyframes evidence-wrong {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
@keyframes score-confirm {
  from {
    transform: scale(0.83);
  }
  to {
    transform: scale(1);
  }
}
@keyframes reward-orbit {
  0% {
    opacity: 0.8;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}
@media (min-width: 1500px) {
  .science-stage {
    max-height: 290px;
  }
  .process-reading {
    min-height: 70px;
  }
  .process-phase-detail {
    font-size: 12px;
  }
  .process-phase-name {
    font-size: 13px;
  }
  .process-steps > span {
    font-size: 10px;
  }
  .process-player button {
    font-size: 11px;
  }
  .process-label,
  .process-label > span:last-child {
    font-size: 10px;
  }
  .package-reveal p {
    font-size: 12px;
  }
  .package-reveal b {
    font-size: 20px;
  }
  .package-reveal {
    min-height: 160px;
  }
  .package-platform {
    height: 141px;
  }
  .package-platform img {
    height: 154px;
  }
  .quest-trail > span {
    font-size: 10px;
  }
  .quest-intro p {
    font-size: 13px;
  }
  .journal-entry p {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  .quest-intro {
    gap: 20px;
    grid-template-columns: 80px 1fr;
    padding: 20px;
  }
  .quest-intro > .button {
    grid-column: 2;
    justify-self: start;
    margin-top: 0;
  }
  .quest-mini-island {
    grid-row: 1/3;
    height: 160px;
    align-self: center;
  }
  .quest-intro h2 {
    font-size: 21px;
  }
  .quest-route-preview {
    gap: 10px;
  }
  .package-reveal {
    gap: 17px;
  }
  .package-reveal p {
    font-size: 9px;
  }
  .process-mode {
    display: none;
  }
  .science-process {
    padding: 10px;
  }
  .process-steps {
    gap: 5px;
  }
  .process-steps > span {
    font-size: 7px;
  }
  .process-phase-detail {
    font-size: 10px;
  }
  .process-phase-name {
    font-size: 11px;
  }
  .quest-trail > span {
    font-size: 7px;
  }
  .quest-hud-head > .button {
    font-size: 9px;
  }
  .quest-hud-head b {
    font-size: 12px;
  }
  .quest-hud-head small {
    font-size: 7px;
  }
  .apple-lane > span {
    font-size: 8px;
  }
  .apple-lane > i {
    font-size: 7px;
  }
  .apple-lane > em {
    font-size: 8px;
  }
  .quest-archive {
    gap: 24px;
    padding: 24px;
  }
  .certificate h2 {
    font-size: 21px;
  }
  .journal-entry {
    padding: 17px;
    gap: 12px;
  }
  .journal-entry p {
    font-size: 10px;
  }
}
@media (max-width: 1000px) {
  .quest-trail {
    gap: 8px;
  }
  .quest-trail > span {
    font-size: 7px;
    gap: 4px;
  }
  .quest-trail i {
    width: 15px;
    height: 15px;
    font-size: 7px;
  }
  .quest-hud {
    padding: 15px 17px;
  }
  .quest-hud-head {
    gap: 10px;
  }
  .quest-hud-head small {
    font-size: 7px;
  }
  .quest-hud-head b {
    font-size: 12px;
  }
  .quest-fraction {
    font-size: 16px;
  }
  .quest-hud-head > .button {
    margin-left: 0;
  }
  .quest-intro {
    grid-template-columns: 80px 1fr;
  }
  .quest-intro p {
    font-size: 11px;
  }
  .package-reveal {
    gap: 25px;
  }
  .package-reveal p {
    font-size: 11px;
  }
  .process-phase-detail {
    font-size: 11px;
  }
  .process-phase-name {
    font-size: 12px;
  }
  .process-steps > span {
    font-size: 9px;
  }
  .process-player button {
    font-size: 10px;
  }
  .process-label,
  .process-label span:last-child {
    font-size: 9px;
  }
  .science-stage {
    max-height: 280px;
  }
  .molecule-panel .group-focus {
    font-size: 10px;
  }
  .compact-process .process-phase-detail {
    font-size: 11px;
  }
  .compact-process .science-stage {
    max-height: 240px;
  }
  #lab-demo {
    min-height: 0;
  }
  .apple-lane > span {
    font-size: 9px;
  }
  .apple-lane > i {
    font-size: 8px;
  }
  .apple-lane > em {
    font-size: 9px;
  }
  .apple-status b {
    font-size: 9px;
  }
  .quest-archive {
    grid-template-columns: 1fr 1fr;
    padding: 23px;
    gap: 20px;
  }
  .quest-archive .detective-medal {
    width: 135px;
  }
  .quest-archive li > span {
    font-size: 10px;
  }
  .quest-archive li > small {
    font-size: 8px;
  }
  .quest-archive li {
    gap: 2px 10px;
  }
  .knowledge-journal .section-heading {
    align-items: center;
  }
  .knowledge-journal .section-heading h2 {
    font-size: 21px;
  }
  .knowledge-journal .section-heading .eyebrow {
    font-size: 8px;
  }
  .knowledge-journal .pill {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  .header-tools {
    gap: 8px;
  }
  .motion-toggle {
    font-size: 8px;
    padding: 5px 8px;
    min-height: 26px;
  }
  .motion-toggle .icon {
    width: 12px;
    height: 12px;
  }
  .header-tools .local-state {
    display: none;
  }
  .quest-hud {
    margin-top: 20px;
  }
  .quest-hud-head {
    gap: 10px;
  }
  .quest-trail > span {
    font-size: 8px;
  }
  .quest-hud-head > .button {
    font-size: 9px;
  }
  .quest-hud-head b {
    font-size: 13px;
  }
  .quest-hud-head small {
    font-size: 8px;
  }
  .quest-hud > p {
    font-size: 10px;
  }
  .process-label,
  .process-label span:last-child {
    font-size: 7px;
  }
  .process-phase-detail {
    font-size: 10px;
  }
  .process-phase-name {
    font-size: 11px;
  }
  .process-steps > span {
    font-size: 7px;
  }
  .science-process .process-player {
    gap: 5px;
  }
  .process-player button {
    font-size: 8px;
    padding: 6px 8px;
    min-height: 30px;
  }
  .compact-process .process-phase-detail {
    font-size: 10px;
  }
  .quest-intro h2 {
    font-size: 22px;
  }
  .molecule-tools {
    flex-wrap: wrap;
  }
  .quest-question h2 {
    font-size: 23px;
  }
  .quest-archive li > small {
    font-size: 9px;
  }
  .journal-entry p {
    font-size: 10px;
  }
  .apple-reaction-lanes {
    padding: 0 15px 10px;
  }
  .apple-lane {
    gap: 4px;
    padding: 7px;
  }
  .apple-lane > span {
    font-size: 7px;
  }
  .apple-lane > i {
    font-size: 6px;
  }
  .apple-lane > em {
    font-size: 7px;
  }
  .apple-lane > b {
    font-size: 7px;
  }
  .apple-status {
    margin: 0 17px 15px;
    padding: 8px;
  }
  .apple-status b {
    font-size: 8px;
  }
  .inquiry-order {
    padding: 10px;
  }
  .inquiry-order > b {
    font-size: 9px;
  }
  .inquiry-order > small {
    font-size: 7px;
  }
}
@media (max-width: 560px) {
  .motion-toggle {
    font-size: 7px;
    padding: 4px 7px;
    min-height: 26px;
    gap: 4px;
  }
  .motion-toggle .icon {
    width: 11px;
    height: 11px;
  }
  .breadcrumb {
    font-size: 6px;
    gap: 5px;
  }
  .header-tools {
    gap: 7px;
  }
  .quest-intro {
    padding: 20px 16px;
    gap: 15px;
    grid-template-columns: 69px 1fr;
  }
  .quest-intro h2 {
    font-size: 20px;
    line-height: 1.6;
  }
  .quest-intro .eyebrow {
    font-size: 6px;
  }
  .quest-intro p {
    font-size: 10px;
    line-height: 1.9;
    margin-top: 9px;
  }
  .quest-mini-island {
    width: 66px;
    height: 148px;
    align-self: start;
    margin-top: 19px;
  }
  .quest-mini-island > img {
    height: 130px;
    width: 91px;
    margin-left: -5px;
  }
  .quest-mini-island:after {
    height: 22px;
    bottom: 11px;
    left: 0;
    right: -6px;
  }
  .quest-orbit {
    top: -5px;
    right: -9px;
    width: 25px;
    height: 25px;
  }
  .quest-orbit .icon {
    width: 13px;
  }
  .quest-route-preview {
    gap: 6px 11px;
    margin-top: 12px;
  }
  .quest-route-preview span {
    font-size: 7px;
    gap: 4px;
  }
  .quest-route-preview b {
    font-size: 7px;
  }
  .quest-intro > .button {
    font-size: 10px;
    padding: 10px 13px;
    min-height: 39px;
    gap: 9px;
    margin-top: 2px;
  }
  .quest-intro > .button .icon {
    width: 15px;
  }
  .quest-hud {
    padding: 14px 13px;
    margin-top: 17px;
  }
  .quest-hud-head {
    gap: 9px;
    flex-wrap: wrap;
  }
  .hud-icon {
    width: 29px;
    height: 32px;
    border-radius: 6px;
  }
  .hud-icon .icon {
    width: 16px;
    height: 16px;
  }
  .quest-hud-head > div {
    min-width: 0;
    flex: 1;
  }
  .quest-hud-head small {
    font-size: 6px;
  }
  .quest-hud-head b {
    font-size: 11px;
  }
  .quest-fraction {
    font-size: 14px;
    margin-left: 0;
  }
  .quest-hud-head > .button {
    font-size: 8px;
    padding: 6px 9px;
    gap: 5px;
    min-height: 30px;
    margin-left: 0;
  }
  .quest-hud-head > .button .icon {
    width: 11px;
  }
  .quest-trail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px 13px;
    margin-top: 12px;
    padding-top: 12px;
  }
  .quest-trail > span {
    font-size: 8px;
    gap: 6px;
  }
  .quest-trail i {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }
  .quest-hud > p {
    font-size: 9px;
    line-height: 1.9;
    margin-top: 12px;
  }
  .quest-hud.complete {
    gap: 10px;
    padding: 13px;
  }
  .quest-hud.complete b {
    font-size: 10px;
  }
  .quest-hud.complete small {
    font-size: 7px;
  }
  .quest-hud.complete .button {
    font-size: 8px;
    padding: 6px 8px;
    min-height: 30px;
  }
  .quest-hud + .page-heading {
    padding-top: 25px;
  }
  .package-reveal {
    padding: 9px 13px;
    gap: 19px;
    min-height: 143px;
    margin-top: 16px;
  }
  .package-platform {
    width: 82px;
    height: 122px;
  }
  .package-platform img {
    width: 108px;
    height: 132px;
  }
  .package-platform:after {
    width: 86px;
  }
  .package-reveal small {
    font-size: 7px;
  }
  .package-reveal b {
    font-size: 17px;
    margin-top: 7px;
  }
  .package-reveal p {
    font-size: 10px;
    line-height: 1.9;
  }
  .package-reveal > div:last-child > span {
    font-size: 7px;
  }
  .ingredient-motion > summary {
    padding: 11px 10px;
    font-size: 9px;
    gap: 6px;
  }
  .ingredient-motion > summary > span {
    font-size: 7px;
  }
  .science-process {
    padding: 11px;
  }
  .science-stage {
    max-height: none;
  }
  .process-label,
  .process-label span:last-child {
    font-size: 7px;
  }
  .process-phase-name {
    font-size: 12px;
  }
  .process-phase-detail {
    font-size: 11px;
    line-height: 1.9;
  }
  .process-steps {
    gap: 7px;
  }
  .process-steps > span {
    font-size: 8px;
    line-height: 1.8;
  }
  .process-player button {
    font-size: 10px;
    min-height: 33px;
    padding: 7px 10px;
  }
  .process-player .icon {
    width: 13px;
    height: 13px;
  }
  .science-process .process-player {
    gap: 7px;
    margin-top: 3px;
  }
  .process-reading {
    min-height: 81px;
  }
  .compact-process .process-reading {
    min-height: 68px;
  }
  .compact-process .process-phase-detail {
    font-size: 10px;
  }
  .compact-process .process-label {
    font-size: 7px;
  }
  .compact-process .process-player button {
    font-size: 9px;
    padding: 6px 9px;
    min-height: 31px;
  }
  .group-focus {
    font-size: 10px;
    margin-top: 15px;
  }
  .indicator-legend {
    font-size: 8px;
    line-height: 1.9;
  }
  .network-process {
    padding: 11px;
  }
  .network-process > p {
    font-size: 11px !important;
  }
  .network-process > small {
    font-size: 9px;
  }
  .apple-reaction-lanes {
    padding: 0 17px 11px;
  }
  .apple-lane {
    padding: 8px;
    gap: 6px;
  }
  .apple-lane > span {
    font-size: 8px;
  }
  .apple-lane > i {
    font-size: 7px;
  }
  .apple-lane > em {
    font-size: 8px;
  }
  .apple-lane > b {
    font-size: 7px;
  }
  .apple-status {
    margin: 0 17px 15px;
    padding: 9px 10px;
  }
  .apple-status b {
    font-size: 9px;
  }
  .inquiry-order {
    grid-column: 1/-1;
    padding: 13px 14px;
    margin-top: 17px;
  }
  .inquiry-order > span {
    font-size: 8px;
  }
  .inquiry-order > b {
    font-size: 10px;
  }
  .inquiry-order > small {
    font-size: 9px;
    line-height: 1.9;
  }
  .quest-question {
    padding: 23px 19px;
    margin-bottom: 22px;
  }
  .quest-question > .eyebrow {
    font-size: 7px;
  }
  .quest-question h2 {
    font-size: 21px;
    line-height: 1.75;
  }
  .quest-question > p {
    font-size: 11px;
  }
  .quest-question .answer-options button {
    font-size: 11px;
    line-height: 1.9;
    padding: 13px 12px;
    gap: 11px;
  }
  .quest-archive {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px 19px;
  }
  .quest-archive .detective-medal {
    width: 145px;
  }
  .quest-archive li {
    gap: 2px 12px;
  }
  .quest-archive li > span {
    font-size: 12px;
  }
  .quest-archive li > small {
    font-size: 10px;
    line-height: 1.9;
  }
  .quest-archive > div > h3 {
    font-size: 23px;
  }
  .quest-archive > div > p {
    font-size: 12px;
  }
  .certificate h2 {
    font-size: 23px;
  }
  .certificate p {
    font-size: 12px !important;
  }
  .certificate > small {
    font-size: 9px;
    line-height: 1.9;
  }
  .certificate > .button {
    font-size: 11px;
    margin-top: 20px;
  }
  .knowledge-journal {
    margin-top: 29px;
    padding-top: 24px;
  }
  .knowledge-journal .section-heading h2 {
    font-size: 22px;
    line-height: 1.6;
  }
  .knowledge-journal .section-heading .eyebrow {
    font-size: 7px;
  }
  .knowledge-journal .section-heading > .pill {
    font-size: 8px;
    margin-top: 12px;
  }
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .journal-entry {
    padding: 17px;
    gap: 13px;
  }
  .journal-entry small {
    font-size: 9px;
  }
  .journal-entry h3 {
    font-size: 16px;
  }
  .journal-entry p {
    font-size: 11px;
    line-height: 1.95;
  }
  .journal-entry-icon {
    width: 31px;
    height: 33px;
  }
  .journal-empty {
    font-size: 11px;
    line-height: 1.9;
    padding: 20px;
  }
  .quest-hud .button {
    transform: none;
  }
  #science-reward {
    right: 17px;
    bottom: 17px;
    padding: 13px 15px;
    gap: 12px;
  }
  #science-reward b {
    font-size: 11px;
  }
  #science-reward small {
    font-size: 8px;
    line-height: 1.9;
  }
  .reward-medal {
    width: 31px;
    height: 31px;
  }
  .reward-medal .icon {
    width: 16px;
  }
  .notebook .certificate .detective-medal {
    width: 147px;
  }
  .notebook .certificate h2 {
    font-size: 24px;
  }
  .notebook .certificate .eyebrow {
    font-size: 7px;
  }
}
@media (max-width: 360px) {
  .motion-toggle {
    font-size: 6px;
    padding: 4px 6px;
    gap: 3px;
  }
  .motion-toggle .icon {
    width: 10px;
  }
  .breadcrumb {
    font-size: 5px;
  }
  .header-tools {
    gap: 5px;
  }
  .quest-hud-head small {
    font-size: 5px;
  }
  .quest-hud-head b {
    font-size: 10px;
  }
  .quest-hud-head > .button {
    font-size: 7px;
    padding: 5px 7px;
  }
  .quest-fraction {
    font-size: 12px;
  }
  .quest-hud-head .hud-icon {
    width: 25px;
    height: 28px;
  }
  .quest-hud-head {
    gap: 7px;
  }
  .quest-trail > span {
    font-size: 7px;
  }
  .quest-intro {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 18px 14px;
  }
  .quest-intro h2 {
    font-size: 18px;
  }
  .quest-mini-island {
    width: 55px;
  }
  .quest-mini-island > img {
    width: 81px;
    height: 124px;
    margin-left: -8px;
  }
  .quest-intro .eyebrow {
    font-size: 5px;
  }
  .quest-intro p {
    font-size: 10px;
  }
  .quest-intro > .button {
    font-size: 9px;
  }
  .quest-route-preview span {
    font-size: 7px;
  }
  .package-reveal {
    gap: 13px;
    padding: 9px 10px;
  }
  .package-platform {
    width: 69px;
  }
  .package-platform img {
    width: 94px;
    height: 126px;
  }
  .package-platform:after {
    width: 75px;
  }
  .package-reveal b {
    font-size: 15px;
  }
  .package-reveal p {
    font-size: 9px;
  }
  .package-reveal small {
    font-size: 6px;
  }
  .process-player button {
    font-size: 9px;
    padding: 6px 9px;
  }
  .process-steps > span {
    font-size: 7px;
  }
  .process-phase-detail {
    font-size: 10px;
  }
  .apple-lane > span {
    font-size: 7px;
  }
  .apple-lane > i {
    font-size: 6px;
  }
  .apple-lane > em {
    font-size: 7px;
  }
  .apple-lane {
    gap: 4px;
    padding: 7px;
  }
  .quest-hud.complete b {
    font-size: 9px;
  }
  .quest-hud.complete small {
    font-size: 6px;
  }
  .quest-hud.complete .button {
    font-size: 7px;
    padding: 5px 7px;
  }
}
html[data-motion='reduced'] *,
html[data-motion='reduced'] *:before,
html[data-motion='reduced'] *:after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion='reduced'] .package-platform img {
  transform: rotateY(-10deg) rotateZ(-3deg);
}
html[data-motion='reduced'] .apple-cut-sweep,
html[data-motion='reduced'] .flow-tracer {
  display: none;
}
html[data-motion='reduced'] .network-water {
  translate: none;
}
@media (prefers-reduced-motion: reduce) {
  .science-stage *,
  .network-water {
    animation: none !important;
    transition: none !important;
  }
}
.process-player button:disabled {
  opacity: 0.55;
  cursor: default;
}
.process-player button:disabled:hover {
  background: #fbfdf5;
}
.protein-network path {
  fill: none;
  stroke: #d6cba6;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.58;
}
.protein-network ellipse {
  fill: #e5dec2;
  stroke: #cdbf94;
  stroke-width: 2;
}
.protein-network text {
  font: 12px system-ui;
  fill: #9c8d64;
  text-anchor: middle;
}
.gel-junctions circle {
  fill: #dad8df;
  stroke: #b6adc4;
  stroke-width: 3;
}
.network-process[data-polymer='carrageenan'] .polymer-lines path {
  stroke: #b7aec5;
  stroke-dasharray: 3 7;
  stroke-width: 5;
  animation: gel-assembly 4s ease-in-out infinite alternate;
}
.network-process[data-polymer='pectin'] .network-water {
  animation-duration: 3.5s;
}
.network-process[data-polymer='carrageenan'] .network-water {
  animation-duration: 2.4s;
}
@keyframes gel-assembly {
  from {
    stroke-dashoffset: 0;
    opacity: 0.65;
  }
  to {
    stroke-dashoffset: 15;
    opacity: 1;
  }
}
@media (max-width: 560px) {
  .process-player button {
    min-height: 38px;
  }
  .compact-process .process-player button {
    min-height: 35px;
  }
}
.quest-context {
  margin: 14px 0 0;
  padding: 13px 14px;
  border: 1px solid #cbdcba;
  border-radius: 5px;
  background: #e4edd7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.quest-context > span {
  font-size: 10px;
  color: #7d9667;
  line-height: 1.9;
}
.quest-context > .button {
  font-size: 9px;
  min-height: 34px;
  white-space: nowrap;
  padding: 7px 10px;
  gap: 6px;
}
.quest-context .icon {
  width: 13px;
  height: 13px;
}
.market-scene > .quest-context {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
}
.apple-studio > .quest-context {
  margin: 0 24px 17px;
}
.process-mode {
  line-height: 1.8;
}
@media (max-width: 560px) {
  .quest-context {
    padding: 12px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .quest-context > span {
    font-size: 10px;
  }
  .quest-context > .button {
    font-size: 10px;
    min-height: 36px;
  }
  .apple-studio > .quest-context {
    margin: 0 17px 15px;
  }
  .science-process {
    scroll-margin-top: 130px;
  }
}
