:root {
  --ink: #192c28;
  --muted: #50635e;
  --paper: #f5f8f4;
  --lime: #dcff85;
  --line: #dce4df;
  --metal: #f6d895;
  --metalloid: #d4c7f2;
  --nonmetal: #b9e3cc;
  --noble: #badceb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
.table-scroll:focus-visible,
summary:focus-visible {
  outline: 3px solid #267454;
  outline-offset: 4px;
}
button:hover {
  filter: brightness(0.96);
}
header {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 22px 4.5%;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 1.05;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: block;
  background: var(--ink);
  color: var(--lime);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 25px;
  font-weight: 800;
  position: relative;
}
.brand-mark span {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
}
nav {
  display: flex;
  gap: 4px;
  margin: auto;
  background: #edf2ef;
  border-radius: 14px;
  padding: 5px;
}
.nav {
  background: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 650;
}
.nav.active {
  background: var(--ink);
  color: white;
}
.level {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 4px;
  flex-direction: column;
}
.level select {
  font-size: 14px;
  border: 1px solid var(--line);
  background: white;
  padding: 7px 25px 7px 9px;
  border-radius: 8px;
  min-height: 40px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 40px 4.5% 0;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 13px;
}
h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.07;
  letter-spacing: -2px;
  margin: 0 0 15px;
  font-weight: 800;
}
.heading > div > p:last-child {
  color: var(--muted);
  margin: 0;
}
h2 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
h3 {
  font-size: 18px;
}
p {
  margin: 0 0 14px;
}
.discovery {
  display: flex;
  gap: 15px;
  align-items: center;
  background: var(--lime);
  padding: 18px 24px;
  border-radius: 16px;
  transform: rotate(2deg);
}
.discovery p {
  font-size: 13px;
  margin: 3px 0 0;
}
.spark {
  font-size: 33px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}
.table-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  min-width: 0;
}
.table-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.table-top p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.segmented {
  background: #edf2ef;
  display: flex;
  padding: 4px;
  border-radius: 10px;
  flex-shrink: 0;
}
.segmented button {
  font-size: 14px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 7px;
  background: none;
}
.segmented .active {
  background: var(--ink);
  color: white;
}
.table-scroll {
  overflow-x: auto;
  padding: 20px 2px 8px;
  overscroll-behavior-x: contain;
}
.periodic {
  display: grid;
  grid-template-columns: repeat(18, minmax(44px, 1fr));
  gap: 5px;
  min-width: 877px;
  position: relative;
}
.element {
  border-radius: 7px;
  background: var(--metal);
  padding: 4px 2px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid transparent;
}
.element .num {
  font-size: 12px;
  align-self: flex-start;
  padding-left: 3px;
  line-height: 1;
}
.element .symbol {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 800;
}
.element .name {
  font-size: 12px;
  display: none;
}
.element.selected {
  border-color: var(--ink);
  box-shadow:
    0 0 0 2px white,
    0 0 0 3px var(--ink);
}
.element.seen:after {
  content: "•";
  position: absolute;
  top: 0;
  right: 4px;
  color: var(--ink);
  font-size: 17px;
}
.metal {
  background: var(--metal);
}
.metalloid {
  background: var(--metalloid);
}
.nonmetal {
  background: var(--nonmetal);
}
.noble {
  background: var(--noble);
}
.table-intro {
  grid-column: 4/13;
  grid-row: 1/3;
  align-self: center;
  justify-self: center;
  max-width: 350px;
  text-align: center;
  padding: 10px 25px;
}
.table-intro strong {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.table-intro p {
  font-size: 14px;
  color: var(--muted);
  margin: 5px 0;
}
.series {
  font-size: 12px;
  background: #edf2ef;
  border-radius: 7px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.legend span {
  font-size: 12px;
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 700;
}
.table-note {
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 0;
}
.scroll-note {
  display: inline;
}
.detail {
  background: var(--ink);
  color: white;
  border-radius: 22px;
  padding: 25px;
  min-height: 450px;
}
.detail .eyebrow {
  color: #c7d5cf;
  letter-spacing: 1px;
  font-size: 12px;
}
.element-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 19px 0;
}
.big-symbol {
  width: 90px;
  height: 100px;
  border-radius: 13px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 43px;
  font-weight: 800;
  line-height: 1.1;
}
.big-symbol small {
  font-size: 14px;
  align-self: flex-start;
  margin-left: 13px;
  font-weight: 500;
}
.detail h2 {
  font-size: 29px;
}
.detail .state-tag {
  font-size: 12px;
  color: #cbd9d1;
}
.detail h3 {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lime);
  margin: 20px 0 8px;
}
.detail p {
  font-size: 15px;
  color: #e5ede8;
}
.detail .thinking {
  background: #2a4038;
  margin-top: 20px;
  color: white;
  border: 0;
}
.detail .thinking p {
  font-size: 14px;
  margin: 5px 0;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.detail-actions button {
  background: #395044;
  color: white;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14px;
}
.detail-actions a {
  font-size: 12px;
  color: #d9eccf;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  margin-top: 24px;
}
.concept,
.challenge-teaser {
  border-radius: 22px;
  padding: 26px 30px;
}
.concept {
  background: #e7eeea;
  border: 1px solid var(--line);
}
.concept h2 {
  margin-top: 15px;
}
.concept p {
  max-width: 660px;
  font-size: 15px;
  color: var(--muted);
}
.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  font-weight: 800;
}
.formula {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 17px 0;
}
.formula span {
  background: var(--nonmetal);
  padding: 7px 15px;
  border-radius: 9px;
  font-size: 24px;
  font-weight: 800;
}
.formula .water {
  background: white;
}
.formula b {
  font-size: 20px;
}
.challenge-teaser {
  background: var(--lime);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.challenge-teaser h2 {
  font-size: 31px;
  margin: 16px 0 12px;
}
.challenge-teaser p {
  max-width: 400px;
}
.primary {
  background: var(--ink);
  color: white;
  padding: 13px 22px;
  border-radius: 11px;
  min-height: 48px;
  font-weight: 700;
}
.thinking {
  background: #edf2ef;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px;
  font-size: 14px;
}
.thinking p {
  margin: 5px 0 0;
}
.thinking b {
  font-size: 13px;
}
.curriculum-chip {
  font-size: 12px !important;
  color: var(--muted);
  margin: 15px 0 0;
}
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.lab-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}
.lab-card h2 {
  font-size: 27px;
  margin: 17px 0;
}
.lab-card > p {
  color: var(--muted);
}
.state-buttons {
  display: flex;
  gap: 7px;
  margin: 20px 0;
}
.state-buttons button {
  min-height: 46px;
  background: #edf2ef;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 14px;
}
.state-buttons .active {
  background: var(--ink);
  color: white;
}
.particle-box {
  height: 240px;
  background: #ecf6f3;
  border: 1px solid #c8ded7;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.particle {
  position: absolute;
  background: #328d6c;
  width: 13px;
  height: 13px;
  border-radius: 100%;
  transition:
    left 0.8s,
    top 0.8s;
}
.particle-box.liquid .particle {
  animation: wobble 2s ease-in-out infinite alternate;
}
.particle-box.gas .particle {
  animation: float 2s ease-in-out infinite alternate;
}
.model-note {
  font-size: 12px;
}
.material-options {
  display: grid;
  gap: 10px;
  margin: 25px 0;
}
.material-options button {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  border: 1px solid var(--line);
  background: #f6f8f6;
  padding: 15px;
  border-radius: 12px;
  min-height: 72px;
  font-weight: 600;
}
.material-options button > b {
  font-size: 25px;
  background: var(--metal);
  padding: 5px 12px;
  border-radius: 8px;
  min-width: 58px;
  text-align: center;
}
.material-options button:not(:first-child) > b {
  background: #e0e8e3;
}
.material-options small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.feedback {
  padding: 15px;
  border-radius: 10px;
  background: #edf2ef;
  min-height: 65px;
  color: var(--ink) !important;
}
.feedback.correct {
  background: #daf3be;
}
.feedback.retry {
  background: #fff0d1;
}
.rust {
  grid-column: 1/-1;
  background: #e7eeea;
}
.choices {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.choices button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 18px;
  min-height: 48px;
}
.rust .feedback {
  background: white;
}
.mission-card {
  max-width: 850px;
  margin: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
}
.mission-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
}
.progress {
  height: 8px;
  background: #edf2ef;
  border-radius: 8px;
  margin: 15px 0 35px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #7aaf46;
  transition: width 0.3s;
}
.mission-card h2 {
  font-size: 33px;
  max-width: 620px;
  margin: 15px 0;
}
.mission-clue {
  color: var(--muted);
  margin-bottom: 27px;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.answer {
  background: #f0f4f0;
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  min-height: 100px;
  font-weight: 700;
}
.answer b {
  font-size: 31px;
  width: 58px;
  text-align: center;
  background: var(--nonmetal);
  border-radius: 10px;
  padding: 7px;
}
.answer.correct {
  border-color: #45804f;
  background: #e2f1d3;
}
.answer.wrong {
  border-color: #af6e29;
  background: #fff0d1;
}
.answer:disabled {
  cursor: default;
  opacity: 1;
}
.mission-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}
.mission-bottom p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}
.mission-card .feedback {
  margin: 20px 0;
}
.reward {
  font-size: 60px;
  color: #81a642;
}
.complete {
  text-align: center;
  padding: 45px 30px;
}
.complete h2 {
  font-size: 36px;
}
.complete button {
  margin: 10px;
}
.link-button {
  background: none;
  text-decoration: underline;
  min-height: 44px;
  font-size: 14px;
  padding: 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 38px;
  padding: 23px 0;
  font-size: 12px;
  color: var(--muted);
}
footer > span {
  font-weight: 750;
  letter-spacing: 1px;
}
.footer-dot {
  margin: 0 10px;
}
footer button {
  font-size: 13px;
  padding: 8px 0;
  background: none;
  min-height: 44px;
  text-decoration: underline;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  width: min(680px, 90vw);
  max-height: 85vh;
  color: var(--ink);
  padding: 30px;
  line-height: 1.7;
}
dialog::backdrop {
  background: #10282099;
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.dialog-header button {
  background: #edf2ef;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 100%;
}
dialog li {
  margin-bottom: 12px;
}
dialog p,
dialog li {
  font-size: 15px;
}
.sources {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sources a {
  color: #267454;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}
details p {
  padding-bottom: 10px;
}
[hidden] {
  display: none !important;
}
@keyframes wobble {
  to {
    transform: translate(7px, -5px);
  }
}
@keyframes float {
  to {
    transform: translate(17px, 25px);
  }
}
@media (min-width: 1500px) {
  .element .name {
    display: block;
    font-size: 9px;
  }
  .periodic {
    min-width: 1050px;
  }
  .element {
    min-height: 75px;
  }
}
@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .detail {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 0 24px;
    min-height: auto;
  }
  .detail > .eyebrow {
    grid-column: 1/-1;
  }
  .detail > .detail-side {
    grid-row: 2 / span 30;
    align-self: start;
  }
  .detail > :not(.eyebrow):not(.detail-side) {
    grid-column: 2;
  }
  .discovery {
    padding: 16px;
  }
  .periodic {
    grid-template-columns: repeat(18, minmax(44px, 1fr));
  }
}
@media (max-width: 800px) {
  header {
    padding: 17px 4%;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    font-size: 23px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin: 8px 0 0;
  }
  .nav {
    flex: 1;
    padding: 10px;
    font-size: 14px;
  }
  .level {
    margin-left: auto;
  }
  main {
    padding: 27px 4% 0;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
  }
  .heading h1 {
    font-size: 39px;
  }
  .heading .eyebrow {
    font-size: 10px;
  }
  .heading p {
    font-size: 14px;
  }
  .discovery {
    padding: 12px;
    transform: none;
    max-width: 160px;
    font-size: 12px;
  }
  .discovery p {
    font-size: 11px;
  }
  .spark {
    font-size: 24px;
  }
  .table-card {
    padding: 18px;
  }
  .table-top {
    align-items: flex-start;
  }
  .table-top h2 {
    font-size: 21px;
  }
  .table-top p {
    max-width: 180px;
    font-size: 13px;
  }
  .segmented button {
    font-size: 12px;
    padding: 8px;
  }
  .bottom-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .detail {
    grid-template-columns: 200px 1fr;
    padding: 22px;
  }
  .bottom-grid {
    gap: 18px;
  }
  .rust {
    grid-column: auto;
  }
  .lab-card {
    padding: 23px;
  }
  .mission-card {
    padding: 24px;
  }
  .mission-card h2 {
    font-size: 27px;
  }
  .answer {
    padding: 14px;
    gap: 10px;
    font-size: 14px;
  }
  .answer b {
    font-size: 27px;
  }
  .mission-bottom {
    align-items: flex-start;
  }
  .mission-bottom .primary {
    flex-shrink: 0;
  }
  .lab-card h2 {
    font-size: 25px;
  }
}
@media (max-width: 520px) {
  .heading {
    display: block;
  }
  .heading h1 {
    font-size: 37px;
  }
  .discovery {
    max-width: unset;
    margin-top: 20px;
    padding: 12px 17px;
    display: inline-flex;
  }
  .discovery p {
    display: none;
  }
  .detail {
    display: block;
  }
  .detail .element-hero {
    margin: 20px 0;
  }
  .table-top {
    flex-direction: column;
  }
  .segmented {
    align-self: flex-start;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  .answer {
    min-height: 70px;
    padding: 13px;
  }
  .mission-card h2 {
    font-size: 25px;
  }
  .mission-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .choices {
    flex-direction: column;
  }
  .state-buttons button {
    padding: 8px;
    font-size: 12px;
  }
  .concept,
  .challenge-teaser {
    padding: 24px;
  }
  .legend {
    gap: 6px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .discovery b {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.mission-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.board-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 5px;
}
.board-bar p {
  margin: 0;
  color: var(--muted);
}
.visit-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 25px;
}
.board-mission {
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  min-height: 260px;
  position: relative;
}
.board-mission:nth-child(5n + 1) {
  background: #e5f2dd;
}
.board-mission:nth-child(5n + 2) {
  background: #e4edf9;
}
.board-mission:nth-child(5n + 3) {
  background: #f8ead1;
}
.board-mission:nth-child(5n + 4) {
  background: #ece4f5;
}
.board-mission:nth-child(5n) {
  background: #e0efe9;
}
.board-mission h2 {
  font-size: 25px;
  margin: 0;
}
.board-mission p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  flex: 1;
}
.board-mission .mission-icon {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1px;
  border: 1px solid #192c2820;
  border-radius: 10px;
  padding: 6px 12px;
  background: #ffffff70;
  min-width: 62px;
  text-align: center;
}
.board-mission .mission-label {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.board-mission .start-label {
  font-weight: 750;
  font-size: 14px;
  border-bottom: 1px solid currentColor;
}
.completed-label {
  font-size: 12px;
  background: var(--ink);
  color: var(--lime);
  padding: 4px 9px;
  border-radius: 7px;
}
.journey-shell {
  max-width: 950px;
  margin: auto;
}
.journey-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.journey-title h1 {
  font-size: 40px;
  margin-top: 16px;
}
.journey-title > p {
  color: var(--muted);
}
.steps {
  display: flex;
  gap: 8px;
  margin: 22px 0;
}
.step {
  flex: 1;
  background: #e4ebe6;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.step.active {
  background: var(--ink);
  color: white;
}
.step.done {
  background: var(--lime);
}
.journey-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
}
.journey-card > h2 {
  font-size: 28px;
}
.find-elements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.find-element {
  background: #edf2ef;
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 20px 14px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  font-weight: 700;
  font-size: 15px;
}
.find-element b {
  font-size: 37px;
  line-height: 1.1;
}
.find-element small {
  font-size: 12px;
  font-weight: 400;
}
.find-element.seen {
  border-color: #39714f;
}
.find-element.selected {
  background: var(--lime);
}
.find-note {
  background: #edf2ef;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}
.find-note h3 {
  margin: 0 0 10px;
}
.find-note p {
  margin: 0 0 8px;
}
.find-note p:last-child {
  margin: 0;
}
.journey-controls {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
}
.journey-controls p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.primary:disabled {
  background: #c7d1c9;
  color: #43534a;
  cursor: default;
}
.task-options {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}
.task-option {
  background: #f1f5f1;
  border: 2px solid transparent;
  border-radius: 12px;
  text-align: left;
  padding: 16px 20px;
  min-height: 60px;
}
.task-option.correct {
  border-color: #387442;
  background: #e2f2d5;
}
.task-option.wrong {
  border-color: #ae7133;
  background: #fff0d1;
}
.task-option:disabled {
  opacity: 1;
  cursor: default;
}
.task-position {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.discovery-input {
  display: block;
  width: 100%;
  min-height: 150px;
  resize: vertical;
  background: #f7faf7;
  border: 1px solid #99b4a4;
  border-radius: 13px;
  font: inherit;
  line-height: 1.5;
  padding: 17px;
  margin: 12px 0;
}
.discovery-input:focus {
  outline: 3px solid #267454;
  outline-offset: 3px;
}
.sentence-starter {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0;
}
.reflection-label {
  font-weight: 700;
  display: block;
  margin-top: 24px;
}
.reflection-note {
  font-size: 12px;
  color: var(--muted);
}
.badge-finish {
  background: var(--lime);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 25px;
  text-align: center;
}
.badge-finish .spark {
  font-size: 52px;
}
.badge-finish h2 {
  font-size: 33px;
  margin: 10px 0;
}
.saved-discovery {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #edf2ef;
  padding: 20px;
  border-radius: 13px;
  margin: 15px 0;
}
.mission-source {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.view-passport {
  background: var(--ink);
  color: white;
  font-size: 14px;
  border-radius: 10px;
  padding: 11px 17px;
  min-height: 44px;
}
#new-explorer {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .mission-board {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    gap: 15px;
  }
  .nav {
    padding: 12px 14px;
  }
}
@media (max-width: 650px) {
  .mission-board {
    grid-template-columns: 1fr;
  }
  .board-mission {
    min-height: 220px;
  }
  .board-bar {
    align-items: flex-start;
  }
  .board-bar p {
    font-size: 14px;
  }
  .find-elements {
    gap: 8px;
  }
  .find-element {
    padding: 15px 6px;
    min-height: 115px;
    font-size: 13px;
  }
  .find-element b {
    font-size: 31px;
  }
  .journey-card {
    padding: 22px;
  }
  .journey-title h1 {
    font-size: 33px;
  }
  .step {
    padding: 11px 9px;
    font-size: 12px;
  }
  .journey-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .journey-controls .primary {
    width: 100%;
  }
  .journey-header {
    align-items: flex-start;
  }
  .mission-label {
    font-size: 11px;
  }
  .board-mission h2 {
    font-size: 24px;
  }
  .nav {
    font-size: 12px;
    padding: 11px 6px;
  }
  .board-bar .link-button {
    font-size: 12px;
  }
}
.heat-controls {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}
.heat-controls button {
  flex: 1;
  font-size: 14px;
  padding: 11px 10px;
}
.science-diagram {
  background: #eef5f0;
  border: 1px solid #c8ded7;
  border-radius: 16px;
  overflow: hidden;
  margin: 20px 0;
}
.science-diagram svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: ui-rounded, "Avenir Next", system-ui, sans-serif;
}
.diagram-key {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  font-size: 12px;
  margin: 13px 0 18px;
}
.diagram-key span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.diagram-key i {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 100%;
  border: 1px solid #192c2820;
}
.water-dot {
  background: #badceb;
}
.sodium-dot,
.hydrogen-dot {
  background: #f6d895;
}
.chloride-dot {
  background: #d4c7f2;
}
.oxygen-dot {
  background: #b9e3cc;
}
.atom-choices {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.atom-choices button {
  background: #edf2ef;
  padding: 10px 14px;
  font-weight: 800;
  min-width: 45px;
  min-height: 46px;
  border-radius: 10px;
}
.atom-choices .active {
  background: var(--ink);
  color: white;
}
.science-diagram .molecule {
  animation: gentle 3s ease-in-out infinite alternate;
}
.science-diagram .molecule:nth-child(odd) {
  animation-delay: -1.5s;
}
@keyframes gentle {
  to {
    transform: translate(3px, -3px);
  }
}
@media (max-width: 520px) {
  .lab-card .state-buttons {
    flex-wrap: wrap;
  }
  .lab-card .state-buttons button {
    flex: 1;
    min-height: 46px;
  }
  .science-diagram {
    margin: 17px -5px;
  }
  .diagram-key {
    font-size: 12px;
    gap: 8px;
  }
}
