:root {
  font-family: "Nunito", ui-rounded, "Avenir Next", system-ui, sans-serif;
  color: #f2f0ff;
  background: #111229;
  font-synthesis: none;
  --muted: #a8a9c7;
  --purple: #b6a0ff;
  --mint: #b3f2d5;
  --panel: #1b1d3c;
  --line: #333553;
  --gold: #ffe3a0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 38% 33%, #27204966, transparent 63%), #111229;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}
button {
  transition:
    background 0.2s,
    transform 0.2s;
}
button:hover:not(:disabled) {
  filter: brightness(1.1);
}
button:active:not(:disabled) {
  transform: scale(0.97);
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 3.2vw, 48px);
  letter-spacing: -1.5px;
  line-height: 1.14;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.6px;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--purple);
  text-transform: uppercase;
}
.shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 42px 24px;
}
.topbar {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff0c;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.8px;
  margin-top: 3px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-button,
.quiet {
  background: #ffffff08;
  border: 1px solid #ffffff15;
  border-radius: 13px;
  min-height: 45px;
  padding: 10px 16px;
  color: #cfcee2;
}
.icon-button {
  min-width: 46px;
  padding: 10px;
}
.top-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.time-pill {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 12px;
  border: 1px solid #ffffff10;
  border-radius: 30px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  padding-top: 35px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.intro .eyebrow {
  margin-bottom: 12px;
}
.intro p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.season-tag {
  background: #a6e9ca0c;
  border: 1px solid #a6e9ca23;
  color: #b6ead7;
  border-radius: 30px;
  padding: 9px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.map {
  position: relative;
  height: 400px;
  margin-top: 8px;
  isolation: isolate;
}
.galaxy {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.galaxy canvas {
  width: 100%;
  height: 100%;
}
.planet-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  width: 128px;
  min-height: 100px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 58px;
}
.planet-node:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.97);
}
.planet-node .planet-title {
  margin-top: 8px;
  background: #13152bcc;
  border: 1px solid #ffffff1b;
  padding: 8px 13px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.planet-node .planet-op {
  font-size: 31px;
  font-weight: 900;
  text-shadow: 0 2px 8px #1114;
}
.planet-node small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-top: 7px;
}
.planet-node.selected .planet-title {
  border-color: #b6f1d6;
  color: var(--mint);
}
.planet-node:nth-of-type(1) {
  left: 17%;
  top: 55%;
}
.planet-node:nth-of-type(2) {
  left: 41%;
  top: 29%;
}
.planet-node:nth-of-type(3) {
  left: 64%;
  top: 60%;
}
.planet-node:nth-of-type(4) {
  left: 85%;
  top: 28%;
}
.map-caption {
  position: absolute;
  left: 15px;
  bottom: 4px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #8c8cae;
  display: flex;
  gap: 8px;
  align-items: center;
}
.map-caption i {
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
}
.mission-card {
  border: 1px solid #5f668955;
  border-radius: 22px;
  background: linear-gradient(115deg, #242a45, #22213b);
  padding: 22px 25px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.mission-symbol {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #9ce5c622;
  color: var(--mint);
  font-size: 34px;
  font-weight: 800;
  flex-shrink: 0;
}
.mission-copy {
  flex: 1;
}
.mission-copy h3 {
  margin-top: 6px;
}
.mission-copy p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.primary {
  min-height: 52px;
  border-radius: 15px;
  padding: 13px 23px;
  background: var(--mint);
  color: #183d36;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 0 #71b69f55;
}
.primary.purple {
  background: #c1aaff;
  color: #31244d;
  box-shadow: 0 4px 0 #71608e55;
}
.primary.gold {
  background: var(--gold);
  color: #634823;
}
.wide {
  width: 100%;
}
.aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel {
  border: 1px solid #ffffff12;
  border-radius: 24px;
  background: linear-gradient(150deg, #25234088, #1b1d37bb);
  padding: 23px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head span {
  font-size: 11px;
  color: var(--muted);
}
.jar-wrap {
  position: relative;
  height: 163px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jar {
  width: 103px;
  height: 112px;
  border: 3px solid #b8abde66;
  border-radius: 13px 13px 28px 28px;
  background: linear-gradient(120deg, #a99bef18, #b3a8e108);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 11px;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 4px;
  transform: rotate(-5deg);
  box-shadow:
    inset 6px 0 0 #ffffff08,
    0 8px 25px #0002;
}
.jar:before {
  content: "";
  position: absolute;
  top: -12px;
  height: 14px;
  border-radius: 5px;
  background: #a396c4;
  border: 3px solid #c6b3e7;
  left: 3px;
  right: 3px;
}
.jar .star {
  font-size: 25px;
  color: var(--gold);
  text-shadow: 0 0 15px #ffd56b55;
  line-height: 1;
}
.jar .empty-star {
  color: #b7acd320;
}
.jar-spark {
  position: absolute;
  font-size: 20px;
  color: var(--gold);
  left: 44px;
  top: 35px;
}
.jar-spark.two {
  left: auto;
  right: 43px;
  top: 95px;
  font-size: 13px;
}
.jar-count {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
}
.jar-count span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.progress {
  height: 6px;
  border-radius: 10px;
  background: #ffffff0c;
  margin: 14px 0;
  overflow: hidden;
}
.progress i {
  height: 100%;
  display: block;
  background: var(--gold);
  border-radius: 10px;
}
.reward-preview {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #10122866;
  border-radius: 13px;
  padding: 12px;
}
.reward-preview b {
  font-size: 12px;
}
.reward-preview small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.reward-preview .reward-icon {
  font-size: 26px;
}
.text-button {
  background: none;
  color: var(--purple);
  font-size: 12px;
  padding: 12px 0 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.guide-face {
  flex-shrink: 0;
  background: #ac9fe317;
  width: 47px;
  height: 47px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 27px;
}
.guide-card p {
  font-size: 12px;
  color: #c4c2dc;
  margin-top: 8px;
  line-height: 1.7;
}
.guide-card .eyebrow {
  font-size: 9px;
}
.explorer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
}
.explorer-bar svg {
  width: 37px;
  height: 52px;
}
.explorer-bar b {
  font-size: 12px;
}
.explorer-bar small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.explorer-bar button {
  margin-left: auto;
  background: none;
  font-size: 18px;
  color: var(--muted);
  padding: 10px;
}
.extras {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.extra {
  flex: 1;
  background: #ffffff04;
  border: 1px solid #ffffff10;
  border-radius: 15px;
  padding: 15px;
  text-align: left;
  display: flex;
  gap: 12px;
  align-items: center;
}
.extra span {
  font-size: 22px;
}
.extra b {
  font-size: 12px;
  display: block;
}
.extra small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  color: #777b9c;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.footer button {
  font-size: 10px;
  background: none;
  color: #9f9dbc;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 5px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #080b20cf;
  backdrop-filter: blur(9px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
  overflow: auto;
}
.modal {
  max-width: 720px;
  width: 100%;
  background: #222340;
  border: 1px solid #555475;
  border-radius: 28px;
  padding: 30px;
  max-height: calc(100svh - 48px);
  overflow: auto;
  box-shadow: 0 30px 100px #0007;
}
.modal.small {
  max-width: 450px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.modal-head h2 {
  margin-top: 8px;
}
.modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.field {
  display: block;
  margin: 17px 0;
  font-size: 12px;
  color: var(--muted);
}
input,
select {
  background: #14172d;
  border: 1px solid #4b4c69;
  color: #f2efff;
  padding: 12px 14px;
  border-radius: 12px;
  max-width: 100%;
  min-height: 46px;
}
input:not([type="checkbox"]),
select {
  width: 100%;
  margin-top: 7px;
}
input[type="checkbox"] {
  accent-color: #ac99ed;
  width: 20px;
  min-height: 20px;
  vertical-align: middle;
  margin-right: 10px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.choice-card {
  border: 1px solid #4a476b;
  background: #ffffff05;
  border-radius: 17px;
  padding: 16px 10px;
  text-align: center;
  min-height: 85px;
}
.choice-card.selected {
  background: #bca5ff1c;
  border: 2px solid var(--purple);
}
.choice-card .big {
  display: block;
  font-size: 31px;
  margin-bottom: 8px;
}
.choice-card b {
  font-size: 12px;
}
.choice-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.avatar-editor {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}
.avatar-display {
  background: radial-gradient(circle, #8c72b233, transparent);
  display: grid;
  place-items: center;
}
.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid transparent;
  font-size: 13px;
}
.swatch.selected {
  border-color: white;
  box-shadow: 0 0 0 2px #9b82d8;
}
.custom-row {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 13px;
}
.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.steps i {
  height: 4px;
  flex: 1;
  background: #ffffff12;
  border-radius: 10px;
}
.steps i.on {
  background: var(--mint);
}
.lesson {
  padding-top: 28px;
}
.lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.lesson-nav .eyebrow {
  color: var(--mint);
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 25px;
}
.activity {
  padding: 26px;
  border: 1px solid #ffffff15;
  border-radius: 25px;
  background: #1d203a;
  min-height: 530px;
}
.activity h1 {
  font-size: 30px;
  text-align: center;
  letter-spacing: -0.7px;
}
.equation {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  text-align: center;
  letter-spacing: 5px;
  margin: 20px 0;
  color: #e3d7ff;
}
.equation .unknown {
  color: var(--mint);
  background: #b8edce10;
  border-bottom: 3px dashed #b8edce55;
  border-radius: 8px;
  padding: 0 10px;
}
.question-text {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.counting-choice {
  border: 0;
  padding: 0;
  margin: 24px 0 8px;
  min-width: 0;
}
.counting-choice legend {
  font-weight: 800;
}
.counting-choice .text-button {
  margin-top: 8px;
}
.object-stage {
  min-height: 160px;
  padding: 15px;
  background: #12172c80;
  border-radius: 20px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.object-group {
  padding: 12px;
  border: 1px dashed #706e9c;
  border-radius: 16px;
  min-width: 90px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  position: relative;
}
.object-group small {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.token {
  border-radius: 12px;
  background: #ffffff06;
  font-size: 28px;
  min-width: 46px;
  min-height: 46px;
  padding: 6px;
  touch-action: none;
  user-select: none;
}
.token.moved {
  opacity: 0.16;
}
.token.counted {
  background: #a3e8c22b;
  outline: 2px solid #94d7b5;
}
.group-sign {
  font-size: 28px;
  color: var(--muted);
}
.drop-zone {
  min-height: 76px;
  border: 2px dashed #7fbaa788;
  border-radius: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  gap: 6px;
  flex-wrap: wrap;
  color: #a6d9c2;
  font-size: 12px;
  background: #acd2c005;
}
.drop-zone.over {
  background: #a8e7c72a;
}
.drop-zone .mini-token {
  font-size: 22px;
}
.answer-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}
.answer-option {
  width: 95px;
  min-height: 75px;
  background: #bca9f31a;
  color: #e4d8ff;
  border: 2px solid #81739f;
  border-radius: 18px;
  font-size: 32px;
  font-weight: 800;
}
.answer-option.correct {
  background: var(--mint);
  color: #123d32;
}
.answer-tools {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.answer-tools button {
  background: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  padding: 10px;
}
.coach {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.coach .panel p {
  font-size: 13px;
  margin-top: 12px;
  color: var(--muted);
}
.feedback {
  min-height: 27px;
  text-align: center;
  color: var(--gold);
  font-size: 14px;
  margin: 12px 0;
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 270px;
  margin: 15px auto;
}
.keypad button {
  background: #3c375c;
  border-radius: 12px;
  min-height: 48px;
  font-size: 22px;
}
.keypad .submit {
  background: var(--mint);
  color: #23453c;
}
.number-entry {
  text-align: center;
  font-size: 30px;
  max-width: 270px;
  display: block;
  margin: 12px auto !important;
}
.success-icon {
  font-size: 74px;
  display: block;
  text-align: center;
  margin: 12px 0;
  filter: drop-shadow(0 0 18px #ffe4a544);
}
.center {
  text-align: center;
}
.trace-canvas {
  width: 100%;
  height: 280px;
  background: #171b32;
  border: 2px dashed #665c8c;
  border-radius: 20px;
  touch-action: none;
  display: block;
}
.trace-info {
  font-size: 12px;
  color: var(--mint);
  margin-top: 12px;
  text-align: center;
}
.pin-error {
  color: #ffd5a5;
  min-height: 24px;
  font-size: 13px;
  margin-top: 12px;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 12px;
}
.stats-table th,
.stats-table td {
  text-align: left;
  padding: 11px 6px;
  border-bottom: 1px solid #ffffff10;
}
.stats-table th {
  font-weight: 500;
  color: var(--muted);
}
.reward-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #ffffff10;
}
.reward-item div {
  flex: 1;
}
.reward-item small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.operation-checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.columns {
  max-width: 400px;
  margin: 20px auto;
  font:
    700 42px ui-monospace,
    monospace;
}
.column-labels,
.column-line {
  display: grid;
  grid-template-columns: 40px repeat(3, 1fr);
  text-align: center;
  gap: 6px;
}
.column-labels {
  font: 11px system-ui;
  color: var(--muted);
  margin-bottom: 14px;
}
.column-line span {
  padding: 5px;
  border-radius: 8px;
}
.column-line.total {
  border-top: 2px solid #b6abcf;
  margin-top: 10px;
  padding-top: 7px;
  color: var(--mint);
}
.column-line .active-col {
  background: #a4dbbe20;
  color: #c3f7dc;
}
.bundle-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  min-height: 80px;
  margin: 15px 0;
}
.unit-cube {
  width: 15px;
  height: 15px;
  background: #acdfc8;
  border: 1px solid #d0ffeb;
  border-radius: 3px;
  display: inline-block;
}
.ten-rod {
  display: grid;
  grid-template-columns: repeat(2, 12px);
  gap: 2px;
  padding: 4px;
  background: #c4afff25;
  border: 1px solid #c4afff;
  border-radius: 5px;
}
.ten-rod .unit-cube {
  width: 12px;
  height: 12px;
  background: #b9a2f5;
  border-color: #d6c6ff;
}
.hundred-tile {
  width: 68px;
  height: 68px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 5px, #fff5 6px),
    repeating-linear-gradient(90deg, #efc17e, #efc17e 5px, #fff5 6px);
  border-radius: 5px;
}
.column-explain {
  text-align: center;
  min-height: 62px;
  font-size: 15px !important;
  color: #e8e2f8 !important;
}
.column-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 20px;
  background: #ffffff08;
  color: var(--muted);
}
.storage-warning {
  padding: 10px 15px;
  background: #6c4938;
  color: #ffedd1;
  font-size: 12px;
  border-radius: 12px;
  margin-top: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #e3f8ef;
  color: #274638;
  border-radius: 15px;
  padding: 14px 22px;
  box-shadow: 0 10px 50px #0005;
  z-index: 50;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  max-width: 90%;
}
.float-token {
  position: fixed;
  pointer-events: none;
  font-size: 34px;
  z-index: 30;
}
.confetti-star {
  position: fixed;
  pointer-events: none;
  font-size: 25px;
  color: var(--gold);
  z-index: 40;
}
.profile-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #6e608b;
  border-radius: 15px;
  background: #332c4b;
  padding: 10px 15px;
}
.collection {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 32px;
  padding: 14px;
  margin-top: 10px;
  min-height: 75px;
  background: #12152d;
  border-radius: 15px;
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.no-margin {
  margin: 0 !important;
}
.little-note {
  font-size: 11px !important;
}
.space-sticker {
  font-size: 64px;
  text-align: center;
  line-height: 1.2;
}
.paused {
  max-width: 580px;
  margin: 70px auto;
  text-align: center;
}
.paused p {
  color: var(--muted);
  margin: 18px 0;
}
.paused .primary {
  margin: 10px;
}
.trace-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}
@media (min-width: 1500px) {
  .map {
    height: 470px;
  }
  .layout {
    padding-top: 45px;
  }
}
@media (max-width: 1050px) {
  .shell {
    padding: 0 25px 24px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 20px;
  }
  .map {
    height: 360px;
  }
  .mission-card {
    padding: 18px;
    flex-wrap: wrap;
  }
  .mission-card .primary {
    margin-left: 0;
    flex: 0 0 100%;
  }
  .season-tag {
    display: none;
  }
  .planet-node {
    width: 100px;
  }
  .planet-node .planet-title {
    font-size: 10px;
    padding: 7px 9px;
  }
  .lesson-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .activity {
    padding: 20px;
  }
  .token {
    min-width: 42px;
    min-height: 42px;
    font-size: 25px;
  }
}
@media (max-width: 760px) {
  .shell {
    padding: 0 18px 20px;
  }
  .topbar {
    height: 76px;
  }
  .brand {
    font-size: 16px;
  }
  .brand img {
    width: 34px;
  }
  .brand small {
    font-size: 8px;
  }
  .top-actions {
    gap: 7px;
  }
  .top-link,
  .time-pill {
    display: none;
  }
  .icon-button {
    min-width: 42px;
    padding: 9px;
  }
  .top-actions .quiet {
    padding: 9px;
    font-size: 11px;
  }
  .layout {
    grid-template-columns: 1fr;
    padding-top: 26px;
    gap: 22px;
  }
  .intro h1 {
    font-size: 32px;
  }
  .intro p {
    font-size: 12px;
    max-width: 300px;
  }
  .map {
    height: 330px;
    margin: 0 -10px;
  }
  .planet-node {
    padding-top: 44px;
    min-height: 88px;
    width: 85px;
  }
  .planet-node .planet-title {
    font-size: 10px;
    padding: 6px;
  }
  .planet-node small {
    font-size: 8px;
  }
  .planet-node .planet-op {
    font-size: 24px;
  }
  .map-caption {
    font-size: 8px;
  }
  .mission-card {
    gap: 13px;
    border-radius: 18px;
  }
  .mission-card .primary {
    margin-left: 0;
    width: 100%;
    flex: auto;
  }
  .mission-symbol {
    width: 46px;
    height: 46px;
  }
  .mission-copy h3 {
    font-size: 16px;
  }
  .aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .aside .panel {
    padding: 16px;
  }
  .aside .jar-panel {
    grid-row: span 2;
  }
  .jar-wrap {
    height: 143px;
  }
  .jar-spark {
    left: 7px;
  }
  .jar-spark.two {
    right: 9px;
  }
  .guide-card {
    flex-direction: column;
    gap: 8px;
  }
  .guide-card p {
    font-size: 11px;
  }
  .explorer-bar {
    padding: 8px !important;
    gap: 5px;
  }
  .explorer-bar svg {
    width: 28px;
  }
  .reward-preview {
    padding: 9px;
    gap: 8px;
  }
  .reward-preview b {
    font-size: 10px;
  }
  .panel h3 {
    font-size: 15px;
  }
  .extras {
    gap: 8px;
  }
  .extra {
    padding: 12px;
    gap: 8px;
  }
  .extra b {
    font-size: 11px;
  }
  .extra small {
    font-size: 9px;
  }
  .footer {
    font-size: 9px;
    gap: 15px;
    line-height: 1.6;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .coach {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .coach .panel {
    flex: 1;
    min-width: 150px;
    padding: 17px;
  }
  .coach .panel p {
    font-size: 12px;
  }
  .lesson-nav {
    margin-bottom: 18px;
  }
  .lesson-nav .quiet {
    font-size: 12px;
  }
  .activity {
    padding: 19px 13px;
    min-height: 0;
  }
  .activity h1 {
    font-size: 24px;
  }
  .object-stage {
    gap: 9px;
    padding: 12px;
  }
  .object-group {
    gap: 5px;
    padding: 9px;
    min-width: 72px;
  }
  .token {
    font-size: 24px;
    min-width: 40px;
    min-height: 40px;
    padding: 4px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    padding: 22px 18px;
    border-radius: 22px;
    max-height: calc(100svh - 24px);
  }
  .modal h2 {
    font-size: 24px;
  }
  .avatar-editor {
    grid-template-columns: 110px 1fr;
    gap: 12px;
  }
  .avatar-display svg {
    width: 100px;
  }
  .swatch {
    width: 32px;
    height: 32px;
  }
  .choice-grid {
    gap: 7px;
  }
  .choice-card {
    padding: 12px 7px;
  }
  .choice-card b {
    font-size: 11px;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .answer-option {
    min-height: 65px;
    width: 85px;
  }
  .columns {
    font-size: 36px;
  }
  .trace-canvas {
    height: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.spaced-title {
  margin-top: 20px;
}
.column-line.carry {
  font-size: 18px;
  color: var(--gold);
  min-height: 24px;
}
.exchanging {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.bundle-arrow {
  font-size: 22px;
  color: var(--gold);
  padding: 0 10px;
}
.number-changed {
  color: var(--gold) !important;
  text-decoration: underline;
  text-underline-offset: 7px;
}
.map:has(.galaxy-fallback) .planet-op {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #bda6ec, #605888);
  box-shadow: 0 0 50px #9376ae33;
}

button {
  -webkit-tap-highlight-color: transparent;
}

/* Space passport and touch-first column practice. */
.passport {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff03;
}
.passport .panel-head {
  flex-wrap: wrap;
  gap: 8px;
}
.passport .panel-head small,
.passport p {
  color: var(--muted);
  font-size: 12px;
}
.passport-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.passport-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  background: #ffffff04;
  color: #f2f0ff;
  text-align: center;
}
.passport-stop:hover {
  background: #b9a2f519;
  border-color: #b9a2f5;
}
.passport-stop b {
  font-size: 12px;
}
.passport-stop small {
  font-size: 11px;
  color: var(--muted);
}
.passport-symbol {
  font-size: 25px;
  color: var(--mint);
}
.passport-stamps {
  display: flex;
  gap: 8px;
}
.passport-stamps i {
  font-style: normal;
  color: #ffffff25;
  font-size: 20px;
}
.passport-stamps .earned {
  color: #efc17e;
}
.workshop-start {
  margin-top: 14px;
  margin-bottom: 6px;
}
.column-keypad {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 410px;
  margin: 20px auto;
}
.column-keypad .answer-option {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 8px;
  font-size: 26px;
}
.column-route {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-transform: capitalize;
}
.column-route li {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 10px;
}
.column-route .done {
  color: var(--mint);
}
.column-route .current {
  background: #a4dbbe20;
  color: #c3f7dc;
}
.practice-bundles {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 180px;
}
.practice-bundles .hundred-tile {
  width: 36px;
  height: 36px;
}
.practice-bundles small {
  width: 100%;
  text-align: center;
}
@media (max-width: 600px) {
  .passport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .passport {
    padding: 15px;
  }
}

.column-activity .columns {
  font-size: 36px;
  margin: 12px auto;
}
.column-activity .column-explain {
  min-height: 44px;
  margin: 10px 0;
}
.column-activity .bundle-display {
  min-height: 60px;
  margin: 10px 0;
}
.column-activity .ten-rod {
  grid-template-columns: repeat(2, 8px);
  padding: 3px;
}
.column-activity .ten-rod .unit-cube {
  width: 8px;
  height: 8px;
}
.column-activity .hundred-tile {
  width: 48px;
  height: 48px;
}
.column-activity .feedback:empty {
  min-height: 0;
  margin: 0;
}

.one-group-hidden .object-group:last-child .token,.one-group-hidden .object-group:last-child small,.all-groups-hidden .token,.all-groups-hidden .object-group small{visibility:hidden}.one-group-hidden .object-group:last-child,.all-groups-hidden .object-group{background:#ede7f9;border:2px dashed #b2a2ca;min-height:90px}.destinations-hidden{visibility:hidden}.difficulty-note{background:#f1ecfb;border-radius:12px;padding:12px}.passport-stamps{flex-wrap:wrap;max-width:170px;gap:3px!important}
