:root {
  --ink: #18211f;
  --muted: #5d6c68;
  --paper: #fffaf0;
  --surface: #ffffff;
  --green: #2f8f6f;
  --mint: #c7ead6;
  --yellow: #ffd45a;
  --orange: #ff9f5a;
  --blue: #4a88c7;
  --red: #e66a5c;
  --line: #dbe4df;
  --shadow: 0 18px 45px rgba(31, 50, 43, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 212, 90, 0.24), transparent 28%),
    radial-gradient(circle at 18% 80%, rgba(74, 136, 199, 0.18), transparent 30%),
    #f3f7ef;
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px 1fr;
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  background: linear-gradient(180deg, #fef8e8 0%, #fdf3dc 100%);
  border-right: none;
  overflow-y: auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-dot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--yellow));
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.08);
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark small {
  color: var(--muted);
  margin-top: 2px;
}

.nav-item {
  display: block;
  width: 100%;
  margin: 3px 0;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  color: #6b6050;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 160ms ease;
  font-size: 15px;
}

.nav-item:hover {
  color: #3d3528;
  background: rgba(255, 255, 255, 0.5);
}

.nav-item.active {
  color: #3d3528;
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

main {
  padding: 28px;
}

.section {
  display: none;
  max-width: 1180px;
  margin: 0 auto 24px;
  animation: sectionIn 380ms ease both;
}

.section.active {
  display: block;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  min-height: 440px;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  align-items: stretch;
}

.hero.active {
  display: grid;
}

.hero-copy,
.lab-stage,
.interactive-panel,
.challenge-card,
.photo-lab,
.variable-zone,
.notebook,
.score-strip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 44px;
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  max-width: 780px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.learning-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.learning-map button {
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.learning-map button:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 12px 24px rgba(24, 33, 31, 0.1);
}

.learning-map strong,
.learning-map span {
  display: block;
}

.learning-map span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.primary-action,
.ghost-action,
.small-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action,
.ghost-action {
  padding: 13px 18px;
  font-weight: 800;
}

.primary-action {
  background: var(--ink);
  color: white;
  box-shadow: 0 10px 26px rgba(24, 33, 31, 0.22);
}

.ghost-action {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.primary-action:hover,
.ghost-action:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.lab-stage {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(199, 234, 214, 0.32)),
    repeating-linear-gradient(90deg, rgba(47, 143, 111, 0.08) 0, rgba(47, 143, 111, 0.08) 1px, transparent 1px, transparent 34px);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.96) contrast(0.98);
}

.lab-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(243, 247, 239, 0.3));
  pointer-events: none;
}

.beaker {
  position: absolute;
  z-index: 2;
  bottom: 38px;
  width: 82px;
  height: 118px;
  border: 4px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  overflow: hidden;
}

.beaker span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54%;
  background: linear-gradient(180deg, rgba(74, 136, 199, 0.5), rgba(47, 143, 111, 0.74));
  animation: liquid 3.4s ease-in-out infinite;
}

.beaker-a {
  left: 38px;
}

.beaker-b {
  right: 52px;
  transform: scale(0.82);
}

@keyframes liquid {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.scope-illustration {
  position: absolute;
  z-index: 2;
  left: 138px;
  right: 138px;
  bottom: 52px;
  height: 260px;
}

.scope-eye {
  position: absolute;
  left: 145px;
  top: 10px;
  width: 52px;
  height: 104px;
  border-radius: 18px;
  background: var(--blue);
  transform: rotate(34deg);
}

.scope-body {
  position: absolute;
  left: 112px;
  top: 78px;
  width: 138px;
  height: 156px;
  border: 10px solid var(--ink);
  border-left-width: 18px;
  border-radius: 76px 76px 32px 32px;
}

.scope-base {
  position: absolute;
  left: 70px;
  bottom: 0;
  width: 230px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
}

.floating-card {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(24, 33, 31, 0.14);
  animation: floatCard 3.6s ease-in-out infinite;
}

.card-one {
  top: 52px;
  left: 44px;
}

.card-two {
  top: 94px;
  right: 48px;
  animation-delay: 0.5s;
}

.card-three {
  bottom: 184px;
  left: 52%;
  animation-delay: 1s;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

.score-strip {
  position: sticky;
  top: 14px;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
}

.score-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 12px;
  border-radius: 99px;
  background: #e9eee8;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
  transition: width 420ms ease;
}

.small-button {
  padding: 8px 12px;
  background: var(--ink);
  color: white;
}

.section-head {
  margin: 18px 0 20px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.generated-visual {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.generated-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.generated-visual figcaption {
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.92);
}

.generated-visual figcaption strong {
  color: var(--ink);
}

.visual-focus {
  margin-bottom: 14px;
  box-shadow: 0 20px 50px rgba(47, 143, 111, 0.18);
}

.challenge-card {
  border-radius: 8px;
  padding: 18px;
}

.challenge-card h3 {
  margin-bottom: 8px;
}

.scenario {
  color: var(--muted);
  line-height: 1.65;
  min-height: 48px;
}

.option-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.option-btn {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.option-btn:hover {
  transform: translateX(3px);
  border-color: var(--green);
}

.option-btn.correct {
  background: #e6f7ef;
  border-color: var(--green);
}

.option-btn.wrong {
  background: #fff0ee;
  border-color: var(--red);
}

.card-result {
  margin-top: 12px;
  min-height: 24px;
  font-weight: 800;
}

.microscope-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
}

.interactive-panel {
  border-radius: 8px;
  padding: 18px;
}

.lens-quiz,
.step-stack,
.step-options,
.quiz-list {
  display: grid;
  gap: 12px;
}

.quiz-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.quiz-card strong {
  display: block;
  margin-bottom: 10px;
}

.slide-field {
  position: relative;
  height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(24, 33, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 31, 0.05) 1px, transparent 1px),
    #fbfff8;
  background-size: 24px 24px;
}

.specimen {
  position: absolute;
  top: 38px;
  right: 48px;
  width: 48px;
  height: 48px;
  border-radius: 50% 44% 50% 42%;
  background: radial-gradient(circle at 32% 35%, #ffffff, var(--green) 32%, #236b54 80%);
  box-shadow: 0 10px 24px rgba(47, 143, 111, 0.3);
  transition: inset 420ms ease, transform 420ms ease;
}

.crosshair {
  position: absolute;
  inset: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border: 2px dashed rgba(24, 33, 31, 0.34);
  border-radius: 50%;
}

.hint-line {
  color: var(--muted);
  line-height: 1.7;
}

.move-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.move-pad button,
.step-pill {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.photo-lab {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 22px;
  padding: 20px;
  border-radius: 8px;
}

.plant-scene {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 212, 90, 0.12), rgba(199, 234, 214, 0.55)),
    repeating-linear-gradient(0deg, rgba(47, 143, 111, 0.06) 0, rgba(47, 143, 111, 0.06) 1px, transparent 1px, transparent 30px);
}

.leaf {
  position: absolute;
  left: 145px;
  top: 104px;
  width: 152px;
  height: 112px;
  border-radius: 76px 12px 76px 12px;
  background: linear-gradient(135deg, #73c17a, #2f8f6f);
  transform: rotate(-18deg);
  box-shadow: 0 16px 34px rgba(47, 143, 111, 0.28);
  transition: filter 450ms ease, background 450ms ease, transform 450ms ease;
}

.leaf.dark {
  filter: brightness(0.58) saturate(0.8);
}

.leaf.blue {
  background: linear-gradient(135deg, #3653a8, #1e2e66);
  transform: rotate(-18deg) scale(1.06);
}

.leaf-vein {
  position: absolute;
  left: 24px;
  top: 53px;
  width: 116px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.44);
}

.lamp {
  position: absolute;
  left: 42px;
  top: 30px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6a9 0, var(--yellow) 48%, rgba(255, 212, 90, 0) 70%);
  animation: lampPulse 2.2s ease-in-out infinite;
}

@keyframes lampPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.iodine-drop {
  position: absolute;
  left: 210px;
  top: -32px;
  width: 24px;
  height: 34px;
  border-radius: 16px 16px 18px 18px;
  background: #6b4ec7;
  opacity: 0;
}

.iodine-drop.drop {
  animation: dropIodine 900ms ease forwards;
}

@keyframes dropIodine {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(170px);
  }
}

.step-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-pill {
  min-height: 48px;
  font-weight: 800;
}

.step-pill.done {
  background: #e6f7ef;
  border-color: var(--green);
}

.feedback-box {
  min-height: 62px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f7faf4;
  border: 1px solid var(--line);
  line-height: 1.7;
}

.variable-zone {
  margin-top: 16px;
  padding: 20px;
  border-radius: 8px;
}

.geranium-lab {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.9), rgba(232, 247, 239, 0.82)),
    repeating-linear-gradient(90deg, rgba(47, 143, 111, 0.05) 0, rgba(47, 143, 111, 0.05) 1px, transparent 1px, transparent 28px);
  box-shadow: var(--shadow);
}

.cinema-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.frame-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.frame-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.compact-head {
  margin-top: 0;
}

.geranium-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.geranium-stage,
.geranium-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.status-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f5f8f3;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.geranium-leaf {
  position: relative;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 212, 90, 0.22), transparent 34%),
    #f7fbf5;
  transition: filter 300ms ease, background 300ms ease;
}

#starchCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.sun-beam {
  position: absolute;
  left: -12%;
  top: -18%;
  width: 80%;
  height: 26%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 212, 90, 0), rgba(255, 212, 90, 0.5), rgba(255, 212, 90, 0));
  opacity: 0;
  transform: rotate(24deg);
  pointer-events: none;
}

.beam-two {
  top: 12%;
  left: -18%;
  transform: rotate(18deg);
}

.geranium-leaf.is-lit .sun-beam {
  opacity: 1;
  animation: beamSweep 2.6s ease-in-out infinite;
}

@keyframes beamSweep {
  0%,
  100% {
    transform: translateX(-18px) rotate(22deg);
  }
  50% {
    transform: translateX(22px) rotate(18deg);
  }
}

.geranium-leaf.is-dark {
  filter: brightness(0.76) saturate(0.82);
}

.geranium-leaf.is-lit {
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 212, 90, 0.72), transparent 20%),
    #f7fbf5;
}

.leaf-center,
.leaf-edge,
.black-card {
  position: absolute;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.leaf-center {
  left: 24%;
  top: 22%;
  width: 52%;
  height: 56%;
  color: white;
  border-radius: 60% 18% 60% 18%;
  background: linear-gradient(135deg, #6dbf73, #2f8f6f);
  transform: rotate(-14deg);
  box-shadow: 0 16px 32px rgba(47, 143, 111, 0.25);
  z-index: 2;
}

.leaf-edge {
  width: 112px;
  height: 92px;
  color: #75827e;
  border: 2px dashed rgba(47, 143, 111, 0.28);
  background: #eef1d8;
  z-index: 2;
}

.edge-left {
  left: 7%;
  top: 32%;
  border-radius: 70% 20% 50% 28%;
  transform: rotate(-26deg);
}

.edge-right {
  right: 7%;
  top: 32%;
  border-radius: 20% 70% 28% 50%;
  transform: rotate(20deg);
}

.black-card {
  left: 42%;
  top: 22%;
  width: 86px;
  height: 122px;
  color: white;
  border-radius: 8px;
  background: rgba(24, 33, 31, 0.86);
  transform: rotate(-10deg);
  box-shadow: 0 14px 24px rgba(24, 33, 31, 0.22);
  opacity: 0.78;
  transition: transform 320ms ease, opacity 320ms ease;
  z-index: 6;
}

.iodine-pipette {
  position: absolute;
  right: 12%;
  top: -18%;
  width: 24px;
  height: 110px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #6b4ec7, #2f235f);
  opacity: 0;
  transform: rotate(22deg) translateY(-20px);
  z-index: 8;
}

.geranium-leaf.has-iodine .iodine-pipette {
  opacity: 1;
  animation: pipetteDrop 1.2s ease both;
}

@keyframes pipetteDrop {
  0% {
    transform: rotate(22deg) translateY(-42px);
  }
  60% {
    transform: rotate(22deg) translateY(22px);
  }
  100% {
    transform: rotate(22deg) translateY(4px);
  }
}

.black-card.card-on {
  opacity: 1;
  transform: rotate(-10deg) translateY(-3px);
}

.geranium-leaf.has-iodine .leaf-center {
  background: linear-gradient(135deg, #3557b7, #1e2e66);
}

.geranium-leaf.has-iodine .black-card {
  background: rgba(24, 33, 31, 0.92);
}

.geranium-leaf.has-iodine .leaf-edge {
  background: #efeecf;
}

.callout {
  position: absolute;
  z-index: 9;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(24, 33, 31, 0.1);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.callout-chlorophyll {
  left: 35%;
  bottom: 18%;
}

.callout-starch {
  right: 10%;
  bottom: 18%;
}

.geranium-leaf[data-frame="intro"] .callout-chlorophyll,
.geranium-leaf[data-frame="control"] .callout-chlorophyll,
.geranium-leaf[data-frame="iodine"] .callout-starch,
.geranium-leaf[data-frame="answer"] .callout-starch {
  opacity: 1;
  transform: translateY(0);
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
}

.legend.green {
  background: var(--green);
}

.legend.pale {
  background: #eef1d8;
  border: 1px solid var(--line);
}

.legend.black {
  background: var(--ink);
}

.legend.blue {
  background: #3557b7;
}

.experiment-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.experiment-controls button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.experiment-controls button:hover {
  border-color: var(--green);
}

.timeline-track {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: #e9eee8;
  overflow: hidden;
}

.timeline-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), #3653b7);
  transition: width 360ms ease;
}

.inference-box {
  min-height: 126px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf4;
  line-height: 1.75;
}

.answer-template {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(47, 143, 111, 0.25);
  background: #fffdf4;
  line-height: 1.7;
}

.template-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.template-head strong {
  font-size: 18px;
}

.template-head small {
  color: var(--muted);
  line-height: 1.5;
}

.template-slots {
  display: grid;
  gap: 8px;
}

.slot-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.slot-row p {
  margin: 0;
}

.slot-label {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #e6f7ef;
  color: #185642;
  font-size: 12px;
  font-weight: 900;
}

.answer-slot {
  display: inline;
  padding: 2px 6px;
  border-radius: 6px;
  background: #e8f0ff;
  color: #285ca8;
  font-weight: 900;
}

.answer-slot.is-empty {
  color: var(--muted);
  background: #f0f3ee;
  font-weight: 800;
}

.variable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.variable-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.variable-card p {
  color: var(--muted);
  line-height: 1.65;
}

.answer-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.answer-chip {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.answer-chip.correct {
  border-color: var(--green);
  background: #e6f7ef;
  color: #185642;
}

.answer-chip.wrong {
  border-color: var(--red);
  background: #fff0ee;
  color: #87352d;
}

.notebook {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
}

.concept-focus {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.concept-module {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.concept-module .generated-visual {
  margin: 0;
}

.concept-board {
  display: grid;
  gap: 12px;
}

.visual-motion {
  position: relative;
}

.image-lesson {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.image-hotspot {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(24, 33, 31, 0.86);
  color: #fff;
  font-size: 0;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 24px rgba(24, 33, 31, 0.2);
}

.image-hotspot::after {
  content: attr(data-index);
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
}

.image-hotspot.active,
.image-hotspot:hover {
  background: var(--yellow);
  color: #503616;
}

.hotspot-fossil {
  left: 7%;
  top: 18%;
}

.hotspot-curve {
  left: 45%;
  top: 16%;
}

.hotspot-clean {
  right: 8%;
  top: 20%;
}

.eng-hotspot-kettle {
  left: 10%;
  top: 18%;
}

.eng-hotspot-sound {
  left: 42%;
  top: 18%;
}

.eng-hotspot-vacuum {
  right: 10%;
  top: 18%;
}

.eng-hotspot-rover {
  left: 48%;
  bottom: 24%;
}

.human-hotspot-villi {
  left: 8%;
  top: 17%;
}

.human-hotspot-eye {
  right: 12%;
  top: 18%;
}

.human-hotspot-food {
  left: 9%;
  bottom: 25%;
}

.human-hotspot-life {
  right: 12%;
  bottom: 25%;
}

.space-hotspot-sun {
  left: 8%;
  top: 13%;
}

.space-hotspot-earth {
  left: 31%;
  top: 21%;
}

.space-hotspot-mars {
  left: 48%;
  top: 21%;
}

.space-hotspot-rover {
  right: 12%;
  bottom: 20%;
}

.image-note {
  position: relative;
  z-index: 1;
  left: auto;
  right: auto;
  bottom: auto;
  width: auto;
  transform: none;
  margin: 0;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  line-height: 1.6;
  box-shadow: none;
}

.motion-card,
.orbit-trainer,
.carbon-lab,
.engineering-lab {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.motion-card {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 245, 219, 0.9), rgba(231, 247, 255, 0.86)),
    repeating-linear-gradient(90deg, rgba(47, 143, 111, 0.05) 0, rgba(47, 143, 111, 0.05) 1px, transparent 1px, transparent 30px);
}

.motion-copy {
  position: relative;
  z-index: 3;
  max-width: 520px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.motion-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.villi-track {
  position: absolute;
  right: 28px;
  top: 26px;
  width: 360px;
  height: 100px;
}

.villi-track span {
  position: absolute;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(255, 159, 90, 0.16);
  animation: nutrientMove 3.2s linear infinite;
}

.villi-track span:nth-child(2) {
  animation-delay: 0.55s;
  background: var(--green);
}

.villi-track span:nth-child(3) {
  animation-delay: 1.1s;
  background: var(--blue);
}

.villi-track span:nth-child(4) {
  animation-delay: 1.65s;
  background: var(--yellow);
}

@keyframes nutrientMove {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  75% {
    transform: translate(-240px, 72px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-300px, 72px) scale(0.6);
    opacity: 0;
  }
}

.eye-ray {
  position: absolute;
  right: 62px;
  bottom: 44px;
  width: 280px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 212, 90, 0), var(--yellow), rgba(255, 212, 90, 0));
  transform: rotate(-11deg);
  animation: rayPulse 1.8s ease-in-out infinite;
}

@keyframes rayPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: rotate(-11deg) scaleX(0.72);
  }
  50% {
    opacity: 1;
    transform: rotate(-11deg) scaleX(1);
  }
}

.growth-dots {
  position: absolute;
  right: 430px;
  bottom: 32px;
  display: flex;
  gap: 10px;
}

.growth-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f39ab3;
  animation: growDot 2.6s ease-in-out infinite;
}

.growth-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.growth-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

.growth-dots i:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes growDot {
  0%,
  100% {
    transform: scale(0.76);
  }
  50% {
    transform: scale(1.2);
  }
}

.orbit-trainer {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.66fr);
  gap: 16px;
  align-items: stretch;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 212, 90, 0.25), transparent 22%),
    radial-gradient(circle at 22% 80%, rgba(74, 136, 199, 0.2), transparent 24%),
    #101b2b;
  color: white;
}

.orbit-brief {
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.orbit-brief h3 {
  margin: 12px 0 10px;
  color: white;
}

.orbit-brief p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.orbit-formula {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.orbit-formula strong {
  color: var(--yellow);
}

.orbit-formula span {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.orbit-stage {
  position: relative;
  min-height: 280px;
  padding: 22px 18px 18px 150px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.sun-node {
  position: absolute;
  left: 18px;
  top: 76px;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border-radius: 50%;
  color: #503616;
  font-weight: 900;
  background: radial-gradient(circle, #fff8be 0, var(--yellow) 48%, #ff9f5a 76%);
  box-shadow:
    0 0 34px rgba(255, 212, 90, 0.56),
    inset 0 -10px 0 rgba(0, 0, 0, 0.08);
  animation: sunPulse 2.8s ease-in-out infinite;
}

.sun-node span,
.sun-node small {
  display: block;
}

.sun-node small {
  font-size: 13px;
  color: rgba(80, 54, 22, 0.72);
}

@keyframes sunPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.orbit-line {
  position: absolute;
  left: 114px;
  right: 20px;
  top: 130px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 212, 90, 0.72), rgba(255, 255, 255, 0.28));
}

.planet-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  min-height: 230px;
}

.planet-chip {
  position: relative;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
}

.planet-chip:hover,
.planet-chip.active {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.26);
}

.planet-chip span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.planet-chip strong {
  font-size: 15px;
}

.planet-1 { background: #8c8175; }
.planet-2 { background: #c99145; }
.planet-3 { background: #3f90cf; }
.planet-4 { background: #d46145; }
.planet-5 { background: #a9794d; }
.planet-6 { background: #caa85e; }
.planet-7 { background: #63a7b7; }
.planet-8 { background: #426bc2; }

.orbit-result {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.result-note {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #e8f0ff;
  color: #285ca8;
  font-weight: 900;
}

.carbon-lab,
.engineering-lab {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.carbon-curve {
  position: relative;
  min-height: 300px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(47, 143, 111, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 143, 111, 0.07) 1px, transparent 1px),
    #fbfff8;
  background-size: 28px 28px;
  overflow: hidden;
}

.curve-title {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 14px;
  color: var(--ink);
}

.curve-title strong {
  font-size: 18px;
}

.curve-title span {
  color: var(--muted);
  line-height: 1.5;
}

.curve-line {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 90px;
  height: 120px;
  border-top: 8px solid transparent;
  border-radius: 50% 50% 0 0;
}

.curve-line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 8px solid var(--green);
  border-radius: 48% 52% 0 0;
  transform: skewX(-18deg);
  animation: curveGlow 2.8s ease-in-out infinite;
}

@keyframes curveGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(47, 143, 111, 0));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(47, 143, 111, 0.5));
  }
}

.peak-dot,
.zero-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.peak-dot {
  left: 42%;
  top: 64px;
  background: var(--orange);
}

.zero-dot {
  right: 28px;
  top: 155px;
  background: var(--green);
}

.curve-step {
  position: absolute;
  left: 24px;
  top: 150px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 8px;
  color: white;
  background: #6f7d78;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.curve-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.curve-caption p {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  color: var(--muted);
}

.curve-caption strong {
  color: var(--ink);
}

.energy-sorter h3 {
  margin-bottom: 10px;
}

.energy-chip {
  font-weight: 900;
}

.sound-demo,
.rover-test {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.test-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.test-head h3 {
  margin-bottom: 0;
}

.test-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #285ca8;
  font-size: 12px;
  font-weight: 900;
}

.speaker {
  position: relative;
  height: 120px;
  margin: 14px 0;
  border-radius: 8px;
  background: #f7faf4;
  overflow: hidden;
}

.speaker::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 38px;
  width: 46px;
  height: 46px;
  border-radius: 12px 50% 50% 12px;
  background: var(--ink);
}

.speaker span {
  position: absolute;
  left: 90px;
  top: 38px;
  width: 44px;
  height: 44px;
  border: 3px solid var(--blue);
  border-left: 0;
  border-radius: 0 50% 50% 0;
  opacity: 0;
}

.sound-demo.is-playing .speaker span {
  animation: soundWave 1.3s ease-out infinite;
}

.speaker span:nth-child(2) {
  animation-delay: 0.28s;
}

.speaker span:nth-child(3) {
  animation-delay: 0.56s;
}

@keyframes soundWave {
  0% {
    opacity: 0.8;
    transform: translateX(0) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translateX(220px) scale(2.3);
  }
}

.vacuum-wall {
  position: absolute;
  right: 72px;
  top: 54px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(24, 33, 31, 0.9);
  color: white;
  font-weight: 900;
}

.sound-demo {
  position: relative;
}

.test-track {
  position: relative;
  height: 112px;
  margin: 10px 0 12px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(47, 143, 111, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 143, 111, 0.07) 1px, transparent 1px),
    #f6faf5;
  background-size: 24px 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.track-label {
  position: absolute;
  top: 8px;
  z-index: 4;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.track-label.start {
  left: 10px;
}

.track-label.finish {
  right: 10px;
}

.track-slope {
  position: absolute;
  left: 18%;
  right: 26%;
  bottom: 22px;
  height: 14px;
  border-radius: 999px;
  background: #c8d6d1;
  transform: rotate(-13deg);
  opacity: 0;
  transform-origin: left center;
  transition: opacity 220ms ease;
}

.track-obstacle {
  position: absolute;
  left: 58%;
  bottom: 24px;
  width: 58px;
  height: 30px;
  border-radius: 10px 10px 4px 4px;
  background:
    radial-gradient(circle at 18% 100%, #8a8179 0 12px, transparent 13px),
    radial-gradient(circle at 50% 100%, #756d67 0 15px, transparent 16px),
    radial-gradient(circle at 82% 100%, #8f8780 0 12px, transparent 13px);
  opacity: 0;
  transition: opacity 220ms ease;
}

#roverDot {
  position: absolute;
  left: 12%;
  bottom: 36px;
  width: 34px;
  height: 24px;
  border-radius: 8px 8px 5px 5px;
  background: var(--orange);
  box-shadow:
    4px 18px 0 -8px var(--ink),
    24px 18px 0 -8px var(--ink);
  transition: left 820ms cubic-bezier(0.22, 1, 0.36, 1), transform 820ms ease;
  z-index: 5;
}

.rover-test[data-mode="slope"] .track-slope {
  opacity: 1;
}

.rover-test[data-mode="slope"] #roverDot {
  transform: translateY(-22px) rotate(-13deg);
}

.rover-test[data-mode="obstacle"] .track-obstacle {
  opacity: 1;
}

.rover-test[data-mode="obstacle"] #roverDot {
  transform: translateY(-10px) rotate(-4deg);
}

.rover-test[data-mode="straight"] #roverDot {
  transform: translateY(0);
}

.rover-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.rover-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.test-readout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.test-readout div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf4;
}

.readout-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.test-readout strong {
  line-height: 1.45;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.memory-grid span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf4;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.point-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.point-card {
  min-height: 142px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 244, 0.9));
  box-shadow: 0 10px 22px rgba(24, 33, 31, 0.06);
}

.point-card strong {
  display: block;
  margin: 8px 0 7px;
  line-height: 1.45;
}

.point-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.exam-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f7ef;
  color: #185642;
  font-size: 12px;
  font-weight: 900;
}

.heat-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.heat-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.heat-tab.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.notebook-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wrong-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.wrong-item {
  padding: 12px;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: #fff6f4;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  min-width: 240px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    background: linear-gradient(180deg, #fef8e8 0%, #fdf3dc 100%);
    padding: 16px 20px;
  }

  .brand-mark {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .nav-item {
    text-align: center;
    border-radius: 10px;
  }

  .nav-item.active {
    transform: none;
  }

  .hero.active,
  .photo-lab,
  .microscope-layout,
  .challenge-grid,
  .variable-grid,
  .geranium-grid,
  .concept-module,
  .orbit-trainer,
  .carbon-lab,
  .engineering-lab {
    grid-template-columns: 1fr;
  }

  .planet-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: auto;
  }

  .orbit-stage {
    padding-left: 18px;
    padding-top: 148px;
  }

  .sun-node {
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
  }

  .sun-node:hover {
    transform: translateX(-50%);
  }

  .orbit-line {
    left: 18px;
    right: 18px;
    top: 126px;
  }

  .learning-map,
  .point-wall {
    grid-template-columns: 1fr;
  }

  .image-hotspot {
    width: 30px;
    height: 30px;
  }

  .image-note {
    width: auto;
    font-size: 13px;
  }

  .curve-caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 150px 12px 12px;
    grid-template-columns: 1fr;
  }

  .carbon-curve {
    min-height: 410px;
  }

  .test-readout {
    grid-template-columns: 1fr;
  }

  .cinema-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 36px;
  }

  .score-strip {
    grid-template-columns: 120px 1fr auto;
    top: 8px;
    padding: 10px 12px;
  }
}

@media (max-width: 560px) {
  main {
    padding: 16px;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy {
    padding: 26px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  .step-options {
    grid-template-columns: 1fr;
  }

  .score-strip {
    grid-template-columns: 1fr auto;
  }

  .score-strip .progress-track {
    grid-column: 1 / -1;
  }
}
