/* MathLab — space concept games (shared by all concept modules). */
.mathlab-app { max-width: 600px; padding-bottom: calc(40px + var(--safe-b)); }
.mathlab-page .app::before { display: none; }
.ml-starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ml-sound-tip { position: relative; z-index: 1; text-align: center; font-size: 13px; color: var(--ink-soft); margin: 0 16px 80px; }
button, .gcell { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

.ml-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ml-top .back-link { margin: 0; }
.back-link.as-btn { font-weight: 700; color: var(--teddy-ink); font-size: 15px; }
.ml-total { margin-left: auto; color: #fde047; font-weight: 800; text-shadow: 0 0 10px rgba(253, 224, 71, 0.6); }
.ml-mission-name { margin-left: auto; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mute-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: rgba(20, 31, 69, 0.85); font-size: 20px; flex: none; }

.ml-hero { text-align: center; margin: 4px 0 18px; }
.ml-hero h1 {
  margin: 0; font-size: clamp(34px, 9vw, 48px); line-height: 1.05;
  background: linear-gradient(90deg, #6ee7b7, #22d3ee, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.35));
}
.ml-tag { margin: 8px auto 0; max-width: 420px; color: var(--ink-soft); font-size: 15px; }
.ml-foot { margin: 18px 6px 0; font-size: 13px; color: var(--ink-soft); text-align: center; }

/* Mission map: planets on a winding path */
.ml-map { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.ml-map::before {
  content: ""; position: absolute; left: 44px; top: 30px; bottom: 30px; width: 3px;
  background: repeating-linear-gradient(180deg, rgba(165, 243, 252, 0.45) 0 8px, transparent 8px 16px);
}
.ml-node { animation: node-in 0.5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i) * 70ms); }
.ml-node:nth-child(even) .ml-planet { margin-left: 18px; }
@keyframes node-in { from { transform: translateY(18px) scale(0.92); opacity: 0; } }
.ml-planet {
  width: calc(100% - 18px); display: flex; align-items: center; gap: 14px; text-align: left; position: relative;
  padding: 12px 14px; border-radius: 24px; background: rgba(20, 31, 69, 0.82); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ml-planet:active { transform: scale(0.98); }
.ml-node.next .ml-planet { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); }
.ml-orb {
  width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 32% 28%, #fff 0 6%, color-mix(in srgb, var(--c) 80%, #fff) 14%, var(--c) 45%, color-mix(in srgb, var(--c) 40%, #0b1638) 100%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c) 55%, transparent), inset -8px -10px 18px rgba(0, 0, 0, 0.35);
}
.ml-orb::after {
  content: ""; position: absolute; inset: 22px -10px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--c) 60%, #fff);
  transform: rotate(-18deg); opacity: 0.6;
}
.ml-orb-icon { font-size: 28px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4)); position: relative; z-index: 1; }
.ml-node.next .ml-orb { animation: orb-float 3s ease-in-out infinite; }
@keyframes orb-float { 50% { transform: translateY(-4px) rotate(-6deg); } }
.ml-node-text { display: grid; gap: 2px; min-width: 0; }
.ml-node-title { font-weight: 800; font-size: 17px; }
.ml-node-blurb { color: var(--ink-soft); font-size: 13px; }
.ml-node-stars b { color: rgba(165, 243, 252, 0.22); font-size: 18px; margin-right: 2px; }
.ml-node-stars b.on { color: #fde047; text-shadow: 0 0 8px rgba(253, 224, 71, 0.8); }
.ml-go {
  margin-left: auto; flex: none; font-weight: 900; font-size: 13px; letter-spacing: 0.08em; color: #062016;
  background: var(--c); border-radius: 999px; padding: 6px 12px; animation: pulse-go 1.6s ease-in-out infinite;
}
@keyframes pulse-go { 50% { transform: scale(1.1); } }

/* Mission card */
.ml-steps { display: flex; gap: 6px; justify-content: center; margin: 0 0 12px; }
.ml-steps span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: rgba(20, 31, 69, 0.85); border: 1px solid var(--line); color: var(--ink-soft);
}
.ml-steps span.done { color: #fde047; border-color: rgba(253, 224, 71, 0.5); }
.ml-steps span.now { color: #062016; background: var(--teddy); border-color: transparent; box-shadow: 0 0 14px rgba(52, 211, 153, 0.7); }
.ml-card {
  position: relative; border-radius: 28px; padding: 18px 16px 20px; text-align: center;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 40%), rgba(15, 24, 58, 0.88);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  box-shadow: var(--shadow), 0 0 30px color-mix(in srgb, var(--c) 20%, transparent);
}
.ml-card.ml-enter { animation: card-in 0.45s cubic-bezier(.3, 1.3, .5, 1); }
@keyframes card-in { from { transform: translateX(30px); opacity: 0; } }
.ml-prompt { margin: 0 0 14px; font-size: 18px; line-height: 1.35; min-height: 2.6em; }
.ml-prompt b { color: var(--c); }
.ml-prompt .soft, .soft { color: var(--ink-soft); font-size: 15px; display: inline-block; }
.ml-stage { position: relative; min-height: 220px; display: grid; place-items: center; margin-bottom: 10px; }
.ml-eq { min-height: 64px; display: grid; gap: 4px; place-items: center; margin: 4px 0 10px; }
.eq-main { font-size: clamp(24px, 7vw, 34px); font-weight: 900; letter-spacing: 0.02em; }
.eq-main.soft { font-size: 18px; font-weight: 700; }
.eq-main b.partial { color: #fda4af; }
.eq-main b.ok, .eq-main .ea { color: #6ee7b7; }
.eq-main .eb { color: #67e8f9; }
.eq-main .et { color: #fde047; text-shadow: 0 0 16px rgba(253, 224, 71, 0.6); }
.eq-main .zero { color: #f0abfc; text-shadow: 0 0 16px rgba(240, 171, 252, 0.9); display: inline-block; animation: zero-in 0.8s cubic-bezier(.3, 1.8, .5, 1) 0.3s both; }
@keyframes zero-in { from { transform: translateX(40px) scale(0.2); opacity: 0; } }
.eq-sub { font-size: 15px; color: var(--ink-soft); font-weight: 700; }
.ml-eq.pop .eq-main { animation: eq-pop 0.6s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes eq-pop { from { transform: scale(0.5); opacity: 0; } }
.ml-actions { display: grid; gap: 12px; justify-items: center; }
.ml-note { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 420px; }
.ml-note b { color: var(--ink); }

.ml-next {
  min-height: 60px; padding: 12px 26px; border-radius: 20px; font-weight: 900; font-size: 19px; color: #062016;
  background: linear-gradient(135deg, #34d399, #22d3ee); box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
  animation: card-in 0.4s ease;
}
.ml-next:active { transform: scale(0.97); }
.ml-next.pulse { animation: pulse-go 1.6s ease-in-out infinite; }
.ml-ghost {
  min-height: 48px; padding: 10px 18px; border-radius: 16px; font-weight: 800; font-size: 15px;
  background: rgba(20, 31, 69, 0.9); border: 1px solid var(--line); color: var(--ink);
}
.ml-choices { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; }
.ml-choice {
  min-width: 92px; min-height: 68px; padding: 8px 18px; border-radius: 20px; font-size: 28px; font-weight: 900;
  background: linear-gradient(180deg, #22305f, #141f45); border: 2px solid rgba(165, 243, 252, 0.28);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); transition: transform 0.12s, opacity 0.3s;
}
.ml-choice:active { transform: translateY(3px); box-shadow: none; }
.ml-choice.right { border-color: #34d399; background: rgba(52, 211, 153, 0.3); animation: eq-pop 0.5s ease; }
.ml-choice.wrong { border-color: #fb7185; background: rgba(251, 113, 133, 0.2); animation: shake 0.4s ease; opacity: 0.6; }
.ml-choice.dim { opacity: 0.3; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.ml-toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 70;
  max-width: min(92vw, 440px); padding: 12px 18px; border-radius: 18px; font-weight: 700; font-size: 15px; text-align: center;
  background: #1e2b5e; border: 1px solid rgba(165, 243, 252, 0.35); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.3s cubic-bezier(.3, 1.4, .5, 1);
}
.ml-toast.no { border-color: rgba(251, 113, 133, 0.6); }
.ml-toast b { color: #fde047; }
.ml-toast.out { opacity: 0; transition: opacity 0.35s; }
@keyframes toast-in { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ---------- Astronaut + rockets ---------- */
.astro { display: inline-block; width: 22px; height: 24px; }
.astro svg { width: 100%; height: 100%; display: block; }
.astro.hop { animation: astro-hop 0.45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes astro-hop { from { transform: translateY(40px) scale(0.3); opacity: 0; } }
.astro.sad { animation: sway 2.4s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(-8deg); } }

.scene-rockets { width: 100%; align-content: end; overflow: visible; }
.pad { display: flex; justify-content: center; align-items: flex-end; gap: 8px; width: 100%; min-height: 200px; padding-top: 10px; }
.ground { width: 100%; height: 14px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(165, 243, 252, 0.25), transparent 70%); margin-top: -4px; }
.rk {
  --w: min(84px, calc((100% - (var(--n) - 1) * 8px) / var(--n)));
  flex: 1 1 0; width: auto; max-width: 84px; min-width: 0;
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 0 18px;
  transition: transform 0.15s;
}
.rk:active:not(.static) { transform: scale(0.96); }
.rk-nose {
  width: 70%; aspect-ratio: 1 / 0.8; border-radius: 50% 50% 8% 8% / 100% 100% 8% 8%;
  background: linear-gradient(90deg, #f87171, #fca5a5 45%, #dc2626); margin-bottom: -2px;
}
.rk-body {
  width: 70%; min-height: 96px; border-radius: 10px 10px 14px 14px; padding: 8px 4px;
  background: linear-gradient(90deg, #cbd5e1, #f8fafc 40%, #94a3b8); display: grid; place-items: center;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.08);
}
.rk-win {
  width: 100%; min-height: 76px; border-radius: 12px; background: radial-gradient(circle at 40% 30%, #1e3a8a, #0b1638);
  border: 3px solid #64748b; display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 1px; padding: 3px 2px;
}
.rk .astro { width: 20px; height: 22px; }
.rk-fin { position: absolute; bottom: 18px; width: 22%; height: 34px; background: linear-gradient(#ef4444, #b91c1c); }
.rk-fin.l { left: 4%; border-radius: 80% 0 4px 4px; }
.rk-fin.r { right: 4%; border-radius: 0 80% 4px 4px; }
.rk-flame {
  position: absolute; bottom: 0; width: 34%; height: 18px; border-radius: 0 0 50% 50%;
  background: radial-gradient(ellipse at top, #fde047, #fb923c 50%, transparent 70%); opacity: 0.25; transform-origin: top;
}
.rk-badge {
  position: absolute; top: -10px; right: 0; min-width: 28px; height: 28px; border-radius: 99px; padding: 0 6px;
  display: grid; place-items: center; font-weight: 900; font-size: 15px; background: #1e2b5e; border: 2px solid rgba(165, 243, 252, 0.5);
}
.rk.full .rk-badge { background: #34d399; color: #062016; border-color: #a7f3d0; animation: eq-pop 0.4s ease; }
.rk.full .rk-win { border-color: #34d399; box-shadow: 0 0 14px rgba(52, 211, 153, 0.6); }
.rk.wobble { animation: wobble 0.5s ease; }
@keyframes wobble { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.rk.counted::after {
  content: attr(data-count); position: absolute; top: -44px; left: 50%; transform: translateX(-50%);
  font-weight: 900; font-size: 24px; color: #fde047; text-shadow: 0 0 12px rgba(253, 224, 71, 0.8); animation: eq-pop 0.4s ease;
}
.rk.launch { animation: launch 1.3s cubic-bezier(.6, 0, .8, .4) forwards; animation-delay: calc(var(--d) * 90ms); }
.rk.launch .rk-flame { opacity: 1; height: 60px; animation: flame 0.08s linear infinite alternate; }
@keyframes flame { to { transform: scaleY(1.3) scaleX(0.85); } }
@keyframes launch { 15% { transform: translateY(4px); } 100% { transform: translateY(-120vh); } }
.empty-pad { min-height: 120px; align-items: center; }
.pad-sign { font-size: 40px; opacity: 0.7; }
.waiting { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
.waiting .astro { width: 34px; height: 38px; }

.recap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; width: 100%; }
.grp {
  position: relative; padding: 10px 10px 8px; border-radius: 50%; min-width: 74px; min-height: 74px; display: grid; place-items: center;
  border: 3px dashed rgba(110, 231, 183, 0.75); background: rgba(52, 211, 153, 0.08);
  animation: eq-pop 0.5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--d) * 140ms);
}
.grp-astros { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 84px; }
.grp .astro { width: 24px; height: 26px; }
.grp-n { position: absolute; top: -10px; right: -6px; background: #34d399; color: #062016; font-weight: 900; border-radius: 99px; min-width: 26px; padding: 0 6px; }
.grp-empty { color: var(--ink-soft); font-size: 12px; font-weight: 700; }

/* ---------- Number line ---------- */
.scene-line { width: 100%; }
.nl { position: relative; width: 100%; height: 200px; }
.nl-arcs { position: absolute; left: 0; right: 0; top: 30px; height: 120px; width: 100%; overflow: visible; }
.nl-arcs .arc { fill: none; stroke: #22d3ee; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.9)); }
.nl-line { position: absolute; left: 2%; right: 2%; top: 146px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #6ee7b7, #22d3ee); box-shadow: 0 0 10px rgba(34, 211, 238, 0.6); }
.tick { position: absolute; top: 140px; width: 2px; height: 16px; margin-left: -1px; background: rgba(165, 243, 252, 0.45); }
.tick.major { height: 20px; top: 138px; background: rgba(165, 243, 252, 0.85); }
.tick i { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.nl-hopper { position: absolute; top: 104px; width: 36px; height: 40px; transform: translate(-50%, 0); z-index: 3; }
.nl-hopper svg { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.7)); }
.nl-hopper .jet { position: absolute; left: 30%; bottom: -6px; width: 40%; height: 8px; border-radius: 50%; background: radial-gradient(#fde047, transparent 70%); }
.arc-label { position: absolute; top: 18px; transform: translateX(-50%); font-weight: 900; font-size: 14px; color: #67e8f9; animation: eq-pop 0.4s ease; }
.nl-landed .landed {
  position: absolute; top: 172px; transform: translateX(-50%); font-weight: 900; font-size: 16px; color: #062016;
  background: #fde047; border-radius: 99px; padding: 0 7px; box-shadow: 0 0 12px rgba(253, 224, 71, 0.8); animation: eq-pop 0.4s ease;
}
.nl-cands .crater {
  position: absolute; top: calc(48px + var(--row) * 44px); transform: translateX(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; font-weight: 900; font-size: 17px;
  background: radial-gradient(circle at 35% 30%, #475569, #1e293b); border: 2px solid rgba(165, 243, 252, 0.6);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.4); animation: eq-pop 0.35s ease;
}
.nl-cands .crater::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: calc(52px - var(--row) * 44px); background: rgba(165, 243, 252, 0.25); }
.nl-cands .crater:active { transform: translateX(-50%) scale(0.92); }
.nl-cands .crater.wrong { border-color: #fb7185; opacity: 0.4; }

/* ---------- Arrays ---------- */
.scene-array { width: 100%; }
.grid-wrap { width: min(100%, 330px); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(var(--g), 1fr); gap: 4px; padding: 8px; border-radius: 18px; background: rgba(7, 13, 34, 0.6); border: 1px solid var(--line); touch-action: none; }
.gcell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; transition: background 0.15s; cursor: pointer; }
.gcell i { width: 8px; height: 8px; border-radius: 50%; background: rgba(165, 243, 252, 0.3); transition: all 0.18s cubic-bezier(.3, 1.6, .5, 1); }
.gcell.on { background: rgba(253, 224, 71, 0.12); }
.gcell.on i {
  width: 74%; height: 74%; border-radius: 0; background: #fde047;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 4px rgba(253, 224, 71, 0.9));
}
.gcell.twinkle i { animation: twinkle 0.6s ease; background: #fff7c2; }
@keyframes twinkle { 50% { transform: scale(1.35) rotate(20deg); } }
.flip-stage { display: grid; place-items: center; min-height: 230px; width: 100%; }
.arr { display: grid; grid-template-columns: repeat(var(--c), 34px); gap: 6px; padding: 12px; border-radius: 18px; background: rgba(253, 224, 71, 0.08); border: 2px solid rgba(253, 224, 71, 0.4); transition: transform 0.9s cubic-bezier(.6, -0.2, .3, 1.3); }
.arr-star { font-size: 30px; line-height: 34px; text-align: center; color: #fde047; text-shadow: 0 0 10px rgba(253, 224, 71, 0.8); animation: eq-pop 0.4s both; animation-delay: calc(var(--row) * 90ms); }
.arr.spin { transform: rotate(90deg) scale(0.9); }
.arr.settle { animation: eq-pop 0.5s ease; }

/* ---------- Pods / place value ---------- */
.scene-pods { width: 100%; }
.pv { display: flex; gap: 10px; justify-content: center; margin-bottom: 12px; }
.pv-box { width: 84px; padding: 6px 0 4px; border-radius: 16px; background: rgba(7, 13, 34, 0.6); border: 1px solid var(--line); display: grid; }
.pv-box small { color: var(--ink-soft); font-weight: 700; font-size: 12px; }
.pv-d { font-size: 40px; font-weight: 900; line-height: 1.1; color: #93c5fd; }
.pv-box:last-child .pv-d { color: #f0abfc; }
.pv-d.flash { animation: eq-pop 0.45s ease; }
.pods { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 72px; }
.pod {
  display: grid; grid-template-columns: repeat(5, 12px); gap: 3px; padding: 6px; border-radius: 12px;
  background: rgba(7, 13, 34, 0.7); border: 2px solid rgba(96, 165, 250, 0.5); animation: pod-in 0.35s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes pod-in { from { transform: translateY(-30px) scale(0.6); opacity: 0; } }
.pod .cell { width: 12px; height: 12px; border-radius: 3px; background: rgba(96, 165, 250, 0.15); }
.pod .cell.on { background: #60a5fa; box-shadow: 0 0 6px rgba(96, 165, 250, 0.9); }
.pod.full { border-color: #93c5fd; box-shadow: 0 0 14px rgba(96, 165, 250, 0.5); }

.rule-orb { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; font-size: 44px; font-weight: 900; animation: orb-float 3s ease-in-out infinite; }
.rule-orb.zero { background: radial-gradient(circle at 35% 30%, #fae8ff, #e879f9 40%, #701a75); box-shadow: 0 0 40px rgba(232, 121, 249, 0.6); }
.rule-orb.one { background: radial-gradient(circle at 35% 30%, #ecfeff, #22d3ee 40%, #155e75); box-shadow: 0 0 40px rgba(34, 211, 238, 0.6); }

/* ---------- Complete ---------- */
.ml-complete { padding: 10px 0; }
.ml-complete h2 { margin: 6px 0; font-size: 30px; color: var(--teddy-ink); }
.ml-complete-rocket { font-size: 70px; animation: launch-bob 1.4s ease-in-out infinite; }
@keyframes launch-bob { 50% { transform: translateY(-12px) rotate(8deg); } }
.ml-big-stars b { font-size: 48px; color: rgba(165, 243, 252, 0.2); display: inline-block; animation: eq-pop 0.6s cubic-bezier(.3, 1.8, .5, 1) both; animation-delay: calc(0.4s + var(--i) * 0.25s); }
.ml-big-stars b.on { color: #fde047; text-shadow: 0 0 20px rgba(253, 224, 71, 0.9); }
.ml-takeaway { margin: 6px auto 16px; max-width: 420px; font-size: 16px; color: var(--ink-soft); background: rgba(7, 13, 34, 0.5); border-radius: 16px; padding: 12px 14px; }
.ml-takeaway b { color: var(--ink); }
.ml-complete-actions { display: grid; gap: 10px; justify-items: center; }

@media (min-width: 700px) {
  .mathlab-app { max-width: 720px; }
  .ml-stage { min-height: 280px; }
  .rk { max-width: 100px; }
  .rk .astro { width: 28px; height: 30px; }
  .grp .astro { width: 30px; height: 32px; }
  .grp-astros { max-width: 110px; }
  .rk-body { min-height: 120px; }
  .rk-win { min-height: 96px; }
  .ml-prompt { font-size: 21px; }
  .grid-wrap { width: 400px; }
  .arr { grid-template-columns: repeat(var(--c), 44px); }
  .arr-star { font-size: 38px; line-height: 44px; }
  .pod { grid-template-columns: repeat(5, 16px); }
  .pod .cell { width: 16px; height: 16px; }
  .ml-map { grid-template-columns: 1fr 1fr; }
  .ml-map::before { display: none; }
  .ml-node:nth-child(even) .ml-planet { margin-left: 0; }
  .ml-planet { width: 100%; }
}
@media (max-width: 380px) {
  .arr { grid-template-columns: repeat(var(--c), 28px); gap: 4px; }
  .arr-star { font-size: 24px; line-height: 28px; }
  .ml-choice { min-width: 80px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-node, .ml-card.ml-enter, .ml-go, .ml-next.pulse, .ml-node.next .ml-orb, .rule-orb, .astro.sad, .ml-complete-rocket { animation: none !important; }
}
