@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');
:root {
  --ink:#143f3b;
  --green:#155a4d;
  --lime:#def695;
  --paper:#fffefa;
  --muted:#58726b;
  --line:#dde8de
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:#f5f7ee;
  color:var(--ink);
  font-family:Nunito,system-ui,sans-serif;
  font-size:16px
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button {
  font:inherit;
  cursor:pointer
}

button:focus-visible,a:focus-visible {
  outline:3px solid #e88343;
  outline-offset:4px
}

button:disabled {
  cursor:not-allowed
}

header {
  height:96px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 4%;
  background:var(--paper);
  border-bottom:1px solid var(--line)
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--ink);
  text-decoration:none;
  font-family:Outfit,system-ui;
  font-size:23px;
  font-weight:800;
  letter-spacing:.4px
}

.brand>span {
  font-size:35px
}

.brand small {
  display:block;
  font:800 10px Nunito,system-ui;
  letter-spacing:1.8px;
  margin-top:4px
}

nav {
  display:flex;
  gap:8px;
  align-items:center
}

.nav,.sound {
  border:0;
  background:transparent;
  padding:12px 18px;
  border-radius:14px;
  color:var(--ink);
  font-weight:800
}

.nav.active {
  background:#eaf0df
}

.nav span {
  background:white;
  border-radius:20px;
  padding:2px 7px;
  margin-left:5px
}

.sound {
  border:1px solid var(--line);
  font-size:23px;
  padding:6px 13px
}

main {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(360px,1fr);
  gap:24px;
  padding:28px 4% 16px;
  max-width:1700px;
  margin:auto
}

.island {
  position:relative;
  min-height:700px;
  border-radius:28px;
  background:#51bfc4 url('island.png') center center/cover;
  overflow:hidden;
  box-shadow:inset 0 0 0 1px #0001
}

.island:before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,#e9ffefa8,transparent 42%,transparent 78%,#123e4970);
  pointer-events:none
}

.map-title {
  position:relative;
  padding:32px
}

.eyebrow {
  font:800 11px Nunito,system-ui;
  letter-spacing:1.9px
}

.map-title h1 {
  font:700 clamp(29px,3vw,47px)/1.12 Outfit,system-ui;
  letter-spacing:-1.5px;
  margin:14px 0 10px
}

.map-title p {
  margin:0;
  font-weight:700
}

.map-note {
  position:absolute;
  bottom:100px;
  left:30px;
  font-weight:800;
  color:white;
  text-shadow:0 2px 5px #154653
}

.pin {
  position:absolute;
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:8px;
  border:0;
  background:none;
  color:var(--ink);
  transition:transform .2s
}

.pin:hover {
  transform:translateY(-5px)
}

.pin>span {
  display:grid;
  place-items:center;
  width:68px;
  height:68px;
  border:4px solid white;
  border-radius:50%;
  background:#f7eac8;
  box-shadow:0 6px 0 #183f382a,0 9px 24px #173e3b38;
  font-size:31px
}

.pin b {
  background:var(--paper);
  border-radius:18px;
  padding:7px 12px;
  font-size:13px;
  box-shadow:0 4px 15px #234f4d25
}

.pin:disabled {
  filter:saturate(.55)
}

.pin.selected>span {
  background:var(--lime);
  outline:5px solid #ffffff60
}

.p1 {
  left:16%;
  top:48%
}

.p2 {
  right:13%;
  top:37%
}

.p3 {
  right:18%;
  bottom:16%
}

.map-bottom {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:20px 25px;
  display:flex;
  justify-content:space-between;
  color:white;
  font-size:13px;
  font-weight:800
}

.panel {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:28px;
  padding:28px;
  align-self:start;
  min-height:700px
}

.panel-top {
  display:flex;
  justify-content:space-between;
  align-items:center
}

.badge {
  font-size:10px;
  font-weight:900;
  letter-spacing:1px;
  background:#f5e9bf;
  padding:6px 9px;
  border-radius:7px
}

h2 {
  font:700 29px/1.2 Outfit,system-ui;
  letter-spacing:-.6px;
  margin:20px 0 10px
}

p {
  line-height:1.55
}

.intro {
  color:var(--muted);
  margin:0 0 18px;
  font-size:15px
}

.guide {
  display:flex;
  gap:12px;
  background:#f1f5e8;
  border:1px solid #e1e9d5;
  border-radius:16px;
  padding:14px;
  margin:18px 0
}

.guide>span {
  font-size:30px
}

.guide p {
  margin:0;
  font-size:14px
}

.guide b {
  display:block;
  margin-bottom:3px
}

.parents {
  display:grid;
  grid-template-columns:1fr 20px 1fr;
  align-items:center;
  text-align:center;
  gap:8px;
  margin:20px 0
}

.parent {
  background:#f3f8f5;
  border-radius:18px;
  padding:12px
}

.creature {
  font-size:44px;
  line-height:1.3
}

.parent small {
  display:block;
  font-size:12px;
  font-weight:800;
  color:var(--muted);
  margin:3px
}

.alleles {
  display:flex;
  justify-content:center;
  gap:6px
}

.allele {
  display:inline-grid;
  place-items:center;
  width:32px;
  height:34px;
  border:1px solid #a9cbbc;
  border-bottom:3px solid #a9cbbc;
  background:white;
  border-radius:8px;
  font:800 18px Outfit,system-ui
}

.question {
  font-weight:900;
  margin:18px 0 10px
}

.options {
  display:grid;
  gap:8px
}

.option {
  border:1px solid var(--line);
  background:white;
  text-align:left;
  padding:12px 14px;
  border-radius:12px;
  color:var(--ink);
  font-size:15px;
  font-weight:700;
  display:flex;
  gap:10px;
  align-items:center
}

.option:before {
  content:'';
  width:17px;
  height:17px;
  border-radius:50%;
  border:2px solid #bacdc3;
  flex-shrink:0
}

.option.chosen {
  border:2px solid var(--green);
  background:#eff6e7;
  padding:11px 13px
}

.option.chosen:before {
  border:5px solid var(--green)
}

.primary {
  width:100%;
  background:var(--green);
  border:0;
  border-bottom:4px solid #0c3e35;
  border-radius:13px;
  color:white;
  font-weight:900;
  padding:14px 18px;
  margin-top:17px;
  transition:transform .15s
}

.primary:hover {
  background:#217460
}

.primary:active {
  transform:translateY(2px)
}

.primary:disabled {
  opacity:.5
}

.feedback {
  padding:12px;
  border-radius:12px;
  background:#fff0d5;
  margin-top:12px;
  font-size:14px;
  line-height:1.5
}

.feedback.good {
  background:#e8f3d6
}

.hint {
  font-size:12px;
  color:var(--muted);
  text-align:center;
  margin:12px 0 0
}

.progress {
  display:flex;
  gap:7px;
  margin-top:18px
}

.progress i {
  height:5px;
  background:#e7ece0;
  flex:1;
  border-radius:6px
}

.progress i.done {
  background:#6fa64a
}

.result {
  text-align:center
}

.egg {
  font-size:100px;
  margin:40px 0;
  display:block;
  animation:wobble .35s infinite alternate
}

.baby {
  font-size:88px;
  display:block;
  margin:20px auto 8px;
  animation:pop .6s cubic-bezier(.2,1.5,.3,1)
}

.result .tag {
  display:inline-block;
  padding:6px 12px;
  background:#edf3e4;
  border-radius:20px;
  font-weight:900
}

.result p {
  text-align:left;
  font-size:15px
}

.result .gene {
  font:800 25px Outfit,system-ui
}

.secondary {
  background:transparent;
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px;
  width:100%;
  margin-top:10px;
  font-weight:800;
  color:var(--green)
}

footer {
  max-width:1700px;
  margin:auto;
  padding:8px 4% 22px;
  display:flex;
  gap:24px;
  font-size:12px;
  color:var(--muted);
  align-items:center
}

footer span {
  margin-right:auto
}

footer button {
  border:0;
  background:none;
  color:var(--muted);
  font-size:12px
}

dialog {
  border:1px solid var(--line);
  border-radius:24px;
  padding:32px;
  max-width:620px;
  width:calc(100% - 32px);
  color:var(--ink);
  background:var(--paper)
}

dialog::backdrop {
  background:#0d343b99;
  backdrop-filter:blur(5px)
}

.close {
  float:right;
  border:0;
  background:#edf2e7;
  width:34px;
  height:34px;
  border-radius:50%;
  font-size:25px;
  color:var(--ink)
}

.entry {
  padding:16px;
  border:1px solid var(--line);
  border-radius:15px;
  margin:12px 0
}

.entry p {
  margin:6px 0;
  font-size:14px
}

.entry .specimen {
  float:right;
  font-size:33px
}

.empty {
  padding:30px;
  text-align:center;
  background:#f1f5e8;
  border-radius:15px
}

@keyframes wobble {
  to {
    transform:rotate(12deg) scale(1.04)
  }

}

@keyframes pop {
  from {
    transform:scale(.2);
    opacity:0
  }

  to {
    transform:scale(1);
    opacity:1
  }

}

@media(min-width:1500px) {
  .island,.panel {
    min-height:760px
  }

  .map-title {
    padding:40px
  }

  .panel {
    padding:34px
  }

}

@media(max-width:1000px) {
  main {
    grid-template-columns:1.1fr 1fr;
    padding:20px;
    gap:16px
  }

  .panel {
    padding:20px
  }

  .map-title {
    padding:24px
  }

  .p1 {
    left:4%
  }

  .p2 {
    right:3%
  }

  .p3 {
    right:7%
  }

}

@media(max-width:760px) {
  header {
    height:auto;
    min-height:80px;
    padding:16px;
    flex-wrap:wrap;
    gap:14px
  }

  .brand {
    font-size:19px
  }

  .brand small {
    font-size:8px
  }

  nav {
    gap:4px
  }

  .nav {
    padding:9px 11px;
    font-size:13px
  }

  main {
    display:flex;
    flex-direction:column;
    padding:14px
  }

  .island {
    min-height:390px
  }

  .map-title h1 {
    font-size:29px
  }

  .map-title p {
    font-size:13px
  }

  .map-title {
    padding:20px
  }

  .pin>span {
    width:48px;
    height:48px;
    font-size:24px
  }

  .pin b {
    font-size:10px;
    padding:5px 8px
  }

  .p1 {
    left:7%;
    top:51%
  }

  .p2 {
    right:10%;
    top:39%
  }

  .p3 {
    right:12%;
    bottom:15%
  }

  .map-note {
    display:none
  }

  .map-bottom {
    padding:13px 15px;
    font-size:11px
  }

  .panel {
    width:100%;
    min-height:0;
    padding:23px
  }

  footer {
    padding:10px 20px 25px;
    gap:14px;
    flex-wrap:wrap
  }

  footer span {
    width:100%
  }

  h2 {
    font-size:27px
  }

}

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

}

/* The same two trait illustrations are used in parents, hatch results and notebook. */
.lumi-sprite {
  display:inline-block;
  width:160px;
  aspect-ratio:1;
  background-image:url('lumis-v3.png');
  background-repeat:no-repeat;
  background-size:200% 100%;
  vertical-align:middle;
  border-radius:16px
}

.lumi-sprite.with-antennae {
  background-position:left center
}

.lumi-sprite.without-antennae {
  background-position:right center
}

.creature .lumi-sprite {
  width:min(100%,115px)
}

.baby .lumi-sprite {
  width:220px;
  max-width:100%
}

.specimen .lumi-sprite {
  width:65px
}

.letter-help {
  font-size:14px;
  color:var(--muted);
  margin:0 0 12px
}

.parent small {
  font-size:13px
}

.baby {
  line-height:1;
  margin:12px auto
}

.creature {
  line-height:1
}

.result .tag {
  margin:8px 0
}

.entry {
  display:flow-root
}

.gene-token {
  display:inline-flex;
  gap:2px;
  vertical-align:baseline;
  white-space:nowrap;
  margin:0 .12em;
  align-items:center
}

.gene-letter {
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:1.06em;
  font-weight:800;
  font-style:normal;
  line-height:1.3;
  min-width:1.45em;
  text-align:center;
  padding:.04em .18em;
  border-radius:5px;
  border:1px solid;
  border-bottom-width:3px;
  text-transform:none;
  letter-spacing:0
}

.gene-A {
  color:#123f80;
  background:#e5efff;
  border-color:#98b6e1
}

.gene-a {
  color:#733575;
  background:#f6e9f7;
  border-color:#cba1cd
}

.gene-R {
  color:#8e2344;
  background:#ffe8ee;
  border-color:#e1a5b6
}

.gene-B {
  color:#344858;
  background:#f1f5f8;
  border-color:#afbfca
}

.alleles .gene-token {
  font-size:21px
}

.inheritance {
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  justify-content:center;
  font-size:20px
}

.option {
  display:block
}

.option:before {
  display:inline-block;
  vertical-align:middle;
  margin-right:10px
}

.anatomy-note {
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
  margin:-6px 0 18px
}

.guide p,.feedback,.intro,.entry p {
  line-height:1.8
}

.entry small {
  line-height:2
}

.result p {
  line-height:1.9
}

/* Keep every mission anchored to the same landmark in the uncropped illustration. */
.island {
  min-height:0;
  align-self:start;
  background:#eaf6eb;
  overflow:hidden
}

.island:before {
  display:none
}

.map-title {
  padding:26px 30px 24px;
  background:linear-gradient(115deg,#eaf6eb,#f5fae9)
}

.map-title h1 {
  font-size:clamp(28px,2.8vw,42px);
  margin:10px 0
}

.map-scene {
  position:relative;
  aspect-ratio:3/2;
  isolation:isolate
}

.map-art {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain
}

.map-scene .pin {
  --pin-size:54px;
  left:var(--map-x);
  top:var(--map-y);
  right:auto;
  bottom:auto;
  width:var(--pin-size);
  height:var(--pin-size);
  padding:0;
  transform:translate(-50%,-50%);
  z-index:2
}

.map-scene .pin:hover {
  transform:translate(-50%,-50%) scale(1.06);
  z-index:3
}

.map-scene .pin>span {
  width:var(--pin-size);
  height:var(--pin-size);
  font-size:26px;
  flex-shrink:0
}

.map-scene .pin b {
  position:absolute;
  top:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%);
  white-space:nowrap;
  font-size:12px;
  padding:7px 11px;
  border:1px solid #d8e7d7
}

.map-scene .pin small {
  display:block;
  font-size:10px;
  font-weight:600;
  color:var(--muted);
  margin-top:2px
}

.map-scene .p1 {
  --map-x:41%;
  --map-y:35%
}

.map-scene .p2 {
  --map-x:18%;
  --map-y:59%
}

.map-scene .p3 {
  --map-x:62%;
  --map-y:55%
}

.map-bottom {
  position:static;
  color:var(--ink);
  padding:17px 23px;
  background:#eaf6eb
}

.map-key {
  display:none
}

@media(max-width:1100px) {
  .map-scene .pin {
    --pin-size:46px
  }

  .map-scene .pin b {
    display:none
  }

  .map-scene .pin:after {
    content:attr(data-number);
    position:absolute;
    right:-8px;
    top:-5px;
    background:#fffefa;
    color:var(--ink);
    border:1px solid #a6c0b1;
    border-radius:50%;
    width:22px;
    height:22px;
    display:grid;
    place-items:center;
    font-size:11px;
    font-weight:900
  }

  .map-key {
    display:grid;
    list-style:none;
    padding:16px 20px;
    margin:0;
    gap:10px;
    background:#fffefa
  }

  .map-key li {
    display:flex;
    justify-content:space-between;
    gap:12px;
    font-size:13px
  }

  .map-key li span {
    color:var(--muted);
    font-size:12px
  }

  .map-title {
    padding:22px
  }

  .map-bottom {
    font-size:12px
  }

  .map-title h1 {
    font-size:29px
  }

}

@media(max-width:380px) {
  .map-key li {
    display:block
  }

  .map-key li span {
    display:block
  }

  .map-scene .pin {
    --pin-size:40px
  }

  .map-title {
    padding:19px
  }

}

/* Keep Lumi clear; mission names live in the accessible itinerary below the map. */
.map-scene .p2 {
  --map-x:8%;
  --map-y:32%
}

.map-scene .p4 {
  --map-x:65%;
  --map-y:35%
}

.map-scene .p5 {
  --map-x:49%;
  --map-y:58%
}

.map-scene .p6 {
  --map-x:57%;
  --map-y:18%
}

.map-scene .pin b {
  display:none
}

.map-scene .pin {
  --pin-size:43px
}

.map-scene .pin:after {
  content:attr(data-number);
  position:absolute;
  right:-6px;
  top:-5px;
  background:#fffefa;
  color:var(--ink);
  border:1px solid #a6c0b1;
  border-radius:50%;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900
}

.map-key {
  display:grid;
  grid-template-columns:1fr 1fr;
  list-style:none;
  padding:18px;
  margin:0;
  gap:10px;
  background:var(--paper)
}

.map-key li {
  display:block;
  min-width:0
}

.mission-stop {
  display:flex;
  width:100%;
  gap:9px;
  align-items:center;
  text-align:left;
  border:1px solid var(--line);
  background:#f5f8ef;
  border-radius:12px;
  padding:12px;
  color:var(--ink);
  min-height:75px
}

.mission-stop>span {
  font-size:23px!important
}

.mission-stop b {
  font-size:14px;
  line-height:1.35
}

.mission-stop small {
  display:block;
  font-size:12px;
  color:var(--muted);
  font-weight:600;
  margin-top:4px
}

.mission-stop.selected {
  border:2px solid var(--green);
  background:#e8f3d6;
  padding:11px
}

.mission-stop:disabled {
  opacity:.6
}

.mission-stop:not(:disabled):hover {
  background:#e4efdb
}

.dna-columns {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:25px 0
}

.dna-columns>div {
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:center
}

.dna-base {
  display:inline-grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:10px;
  font:800 25px ui-monospace,monospace;
  border:2px solid #b6cfbd;
  background:#eef6e8;
  color:#1a523b
}

.base-A {
  background:#e5efff;
  border-color:#98b6e1;
  color:#123f80
}

.base-T {
  background:#fff1d9;
  border-color:#e0ba7a;
  color:#704007
}

.base-C {
  background:#f6e9f7;
  border-color:#cba1cd;
  color:#733575
}

.base-G {
  background:#e4f4ee;
  border-color:#91c8b6;
  color:#145743
}

.base-bond {
  font-size:22px
}

.dna-columns select,.experiment select {
  font:800 18px Nunito,system-ui;
  color:var(--ink);
  background:white;
  border:2px solid #9bbdad;
  border-radius:8px;
  padding:9px;
  max-width:100%
}

.sequence {
  display:flex;
  gap:10px;
  margin:15px 0 24px
}

.base-choice {
  border:0;
  background:transparent;
  padding:0;
  border-radius:10px
}

.base-choice:hover {
  outline:3px solid #6d9d89
}

.experiment {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:22px
}

.experiment>div {
  background:#eff5e9;
  padding:14px 9px;
  border-radius:15px;
  text-align:center
}

.plant-icon {
  display:block;
  font-size:60px;
  margin:16px 0
}

.experiment p,.experiment label,.experiment b {
  font-size:14px
}

.experiment label {
  display:block;
  margin-bottom:7px
}

.experiment select {
  font-size:14px;
  width:100%
}

#growth {
  font-weight:800
}

.option+.option {
  margin-top:8px
}

@media(max-width:1000px) and (min-width:761px) {
  .map-key {
    grid-template-columns:1fr
  }

  .map-scene .pin {
    --pin-size:32px
  }

  .map-scene .pin>span {
    font-size:19px;
    border-width:3px
  }

}

@media(max-width:480px) {
  .map-key {
    grid-template-columns:1fr;
    padding:14px
  }

  .map-scene .pin {
    --pin-size:32px
  }

  .map-scene .pin>span {
    font-size:19px;
    border-width:3px
  }

  .dna-base {
    width:42px;
    height:44px
  }

  .sequence {
    gap:8px
  }

}

select:focus-visible {
  outline:3px solid #e88343;
  outline-offset:3px
}

/* New illustrated header logo. Adjust width here to resize it. */
.brand .game-logo {
  display:block;
  width:270px;
  max-width:65vw;
  height:auto;
  object-fit:contain
}

header {
  height:auto;
  min-height:112px;
  padding-top:12px;
  padding-bottom:12px;
  gap:16px
}

@media(max-width:760px) {
  .brand .game-logo {
    width:240px;
    max-width:calc(100vw - 32px)
  }

  header {
    min-height:96px
  }

}

/* Mission 4: complementary DNA strands and specific feedback. */
.pairing-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
}
.pairing-key > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.pairing-key .dna-base {
  width: 34px;
  height: 36px;
  font-size: 20px;
}
.dna-exercise {
  padding: 16px 8px;
  background: #f3f8f5;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.strand-label {
  font-size: 14px;
  font-weight: 800;
  margin: 4px 0 12px;
}
.strand-row {
  display: grid;
  grid-template-columns: 22px repeat(4, minmax(0, 1fr)) 22px;
  gap: 5px;
  align-items: center;
  justify-items: center;
}
.strand-end {
  font: 700 14px ui-monospace, monospace;
  color: var(--muted);
}
.pairing-bonds {
  color: #89a79a;
  font-size: 23px;
  margin: 3px 0;
}
.base-input {
  width: 100%;
  min-width: 0;
  text-align: center;
}
.column-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--muted);
}
.base-input select {
  width: 100%;
  max-width: 66px;
  min-height: 48px;
  padding: 5px 2px;
  border: 2px solid #9bbdad;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font: 800 21px ui-monospace, monospace;
}
.base-input small {
  display: block;
  min-height: 22px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
}
.base-input .pair-correct {
  border-color: #34745b;
  background: #e8f3d6;
}
.base-input .pair-incorrect {
  border-color: #a54d28;
  background: #fff0e6;
}
.dna-note, .dna-detail {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.dna-detail summary {
  cursor: pointer;
  font-weight: 800;
}
.feedback ul {
  padding-left: 20px;
  margin: 10px 0;
}
@media (max-width: 380px) {
  .strand-row .dna-base {
    width: 36px;
    height: 42px;
  }
  .strand-row {
    grid-template-columns: 18px repeat(4, minmax(0, 1fr)) 18px;
    gap: 3px;
  }
}

/* Mission themes and the environmental experiment. */
.mission-story {
  font: 700 16px Outfit, system-ui;
  color: var(--muted);
  margin: 0 0 18px;
}
.notebook-topic {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 7px;
}
.lab-premise {
  padding: 12px;
  border-radius: 12px;
  background: #eaf1ff;
  color: #25486c;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.garden-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin: 18px 0;
}
.plant-card {
  background: #eff5e9;
  border: 1px solid #d5e4cb;
  border-radius: 18px;
  overflow: hidden;
  padding: 14px 8px;
  text-align: center;
}
.reference-plant {
  background: #f4f6f1;
  border-color: #e0e6da;
}
.plant-caption {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .4px;
  min-height: 38px;
  margin: 0;
}
.plant-stage {
  width: 100%;
  max-width: 240px;
  margin: auto;
  aspect-ratio: 1;
}
.plant-sprite {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('assets/plant-states.png');
  background-repeat: no-repeat;
  background-size: 200% 200%;
}
.plant-healthy { background-position: 0 0; }
.plant-dry { background-position: 100% 0; }
.plant-shade { background-position: 0 100%; }
.plant-nutrients { background-position: 100% 100%; }
.plant-card h3 {
  font: 800 16px/1.35 Nunito, system-ui;
  margin: 10px 0;
}
.reference-conditions {
  font-size: 14px;
  line-height: 1.8;
  margin: 12px 0;
}
.reference-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.factor-badges {
  display: grid;
  gap: 5px;
}
.factor-badge {
  display: block;
  padding: 5px;
  border-radius: 7px;
  background: #e4efdc;
  font-size: 12px;
  line-height: 1.4;
}
.factor-badge.limited {
  background: #fff0d9;
  color: #77451c;
}
.lab-controls {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.lab-controls h3, .lab-checklist h3 {
  margin: 0 0 15px;
  font-size: 16px;
}
.lab-control {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 45%);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.lab-control label {
  font-size: 14px;
  font-weight: 800;
}
.lab-control select {
  width: 100%;
  min-height: 44px;
  border: 2px solid #a6c4b2;
  border-radius: 9px;
  padding: 8px;
  color: var(--ink);
  background: white;
  font: 700 15px Nunito, system-ui;
}
.lab-controls .secondary {
  font-size: 14px;
  line-height: 1.4;
}
.lab-observation {
  padding: 16px;
  margin: 15px 0;
  border-left: 4px solid #7b9e51;
  background: #f0f5e7;
  border-radius: 0 12px 12px 0;
  font-size: 15px;
}
.lab-observation p { margin: 6px 0 0; }
.lab-checklist {
  border: 1px dashed #a3bd92;
  border-radius: 14px;
  padding: 16px;
  font-size: 14px;
}
.lab-checklist p { margin: 8px 0; }
.lab-checklist ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.lab-checklist li {
  padding: 5px 9px;
  background: #eef0e8;
  border-radius: 7px;
}
.lab-checklist .tested {
  color: #205b37;
  background: #e1f1cd;
  font-weight: 900;
}
#labProgress { font-weight: 900; }
.epigenetics-note {
  margin: 20px 0;
  border-radius: 12px;
  background: #edf2ff;
  padding: 15px;
  color: #25486c;
  font-size: 15px;
}
.epigenetics-note summary {
  font-weight: 900;
  cursor: pointer;
  min-height: 26px;
}
.epigenetics-note p { margin-bottom: 0; }
.garden-lab .option:disabled { opacity: .55; }
#science a { color: #205e83; text-underline-offset: 3px; }
@media (max-width: 380px) {
  .lab-controls { padding: 12px; }
  .lab-control { grid-template-columns: 1fr; gap: 4px; }
  .plant-card { padding: 12px 5px; }
  .plant-card h3 { font-size: 15px; }
}
