@charset "UTF-8";
:root {
  --ink:#34305e; --muted:#686384; --paper:#f3f0ff; --line:#dcd6f0;
  --purple:#855cd6; --purple-dark:#6843b3; --blue:#4c97ff;
  --blue-dark:#3373cf; --orange:#ffab19; --orange-dark:#db8504;
  --lime:#b6e85c; --green:#37b7b1; --radius:20px;
  font-family:ui-rounded,"SF Pro Rounded","Avenir Next",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink); background:var(--paper); font-synthesis:none;
}
* {box-sizing:border-box}
body {margin:0;background:linear-gradient(180deg,#f0ebff 0,#faf8ff 620px);min-height:100vh}
button,select,input {font:inherit}
button,a,input,select {-webkit-tap-highlight-color:transparent}
button {cursor:pointer;touch-action:manipulation;color:inherit;min-height:44px}
button:disabled {cursor:default;opacity:.45}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {outline:3px solid #f2b515;outline-offset:4px}
button:active:not(:disabled) {transform:translateY(2px)}
[hidden] {display:none!important}
h1,h2,h3,p {margin:0}
a {color:inherit}
#app-shell {max-width:1280px;margin:0 auto;padding:0 32px}
.site-header {position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;color:white;background:var(--purple);box-shadow:0 0 0 100vmax var(--purple);clip-path:inset(0 -100vmax);border-bottom:3px solid #734bbf}
.brand {text-decoration:none;display:flex;align-items:center;gap:10px;font-size:20px;font-weight:900;letter-spacing:-.45px;line-height:1.02;flex-shrink:0}
.brand-second {display:block;font-size:12px;letter-spacing:.9px;margin-top:5px}
.brand-mark {width:44px;height:44px;display:grid;place-items:center;background:#fff;color:var(--purple);font-size:37px;border-radius:13px;box-shadow:0 3px 0 #6540ac}
.brand-mark svg {display:block;width:100%;height:100%;padding:3px}
.school {margin-left:auto;font-size:14px;font-weight:750;text-align:right}
.school span {display:block;font-size:12px;font-weight:550;margin-top:4px;color:#f0eaff}
.quiet-button {border:2px solid #ffffff55;background:#ffffff1f;color:white;border-radius:12px;padding:8px 14px;font-size:14px;font-weight:800;white-space:nowrap}
.quiet-button>span {display:inline-grid;place-items:center;width:21px;height:21px;border:2px solid white;border-radius:50%;font-size:14px;line-height:1;margin-right:5px}
.intro {display:flex;justify-content:space-between;align-items:center;padding:20px 2px 21px;gap:20px}
.intro .eyebrow,.mission-sticker {display:none}
h1 {font-size:clamp(26px,3vw,38px);font-weight:900;letter-spacing:-1px;line-height:1.15}
h1 br {display:none}
h1>span {color:var(--purple);margin-left:.2em}
.intro p:last-child {font-size:15px;line-height:1.5;margin-top:7px;color:var(--muted)}
.intro p:last-child br {display:none}
.eyebrow,.step-label {font-size:12px;font-weight:850;letter-spacing:.15px}
.eyebrow {color:var(--purple);margin-bottom:12px}
.workspace {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:18px;align-items:stretch}
.panel {min-width:0;background:white;border:2px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 5px 0 #e5dff4}
.panel-heading {display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:8px}
.step-label {color:var(--purple);font-size:11px}
h2 {font-size:24px;font-weight:900;letter-spacing:-.5px;line-height:1.15;margin-top:3px}
.star-counter {display:flex;align-items:center;gap:7px;padding:7px 12px;background:#fff1a9;color:#805600;border:2px solid #ffdc52;border-radius:13px;font-size:26px;white-space:nowrap;box-shadow:0 2px 0 #f7d966}
.star-counter b {font-size:16px}
.maze {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));aspect-ratio:1;max-width:430px;margin:0 auto;position:relative;gap:4px;padding:6px;border:7px solid #168eb1;border-radius:17px;background:#bdeefa;box-shadow:0 4px 0 #0e759d;overflow:hidden}
.cell {min-width:0;position:relative;display:grid;place-items:center;aspect-ratio:1;border-radius:6px;background:#f3fcff;box-shadow:inset 0 -3px 0 #dceef7}
.cell.wall {background:#31bed4;border-radius:6px;box-shadow:inset 0 4px 0 #62d9e7,inset 0 -5px 0 #149bba}
.cell.wall:after {content:"";width:13px;height:9px;border-radius:4px;background:#7de4ee;box-shadow:0 2px 0 #19a9c0;opacity:.85}
.cell.start:before {content:"";position:absolute;inset:5px;border:2px dashed #67b65c;border-radius:5px}
.cell.goal {background:#e5d7ff;box-shadow:inset 0 -3px 0 #ccb5f5}
.cell .star {color:#ffc41c;font-size:clamp(25px,3.3vw,38px);line-height:1;filter:drop-shadow(0 2px 0 #cb9001)}
.cell.collected .star {opacity:.18;filter:none}
.goal-flag {font-size:clamp(26px,3.5vw,41px);color:#855cd6}
.robot {position:absolute;inset:2px;z-index:2;transition:transform .2s ease}
.robot svg {display:block;width:100%;height:100%;filter:drop-shadow(0 2px 1px #193d6040)}
.maze-legend {display:flex;justify-content:center;align-items:center;gap:16px;padding:16px 0 8px;font-size:13px;font-weight:750}
.maze-legend>span {display:flex;align-items:center;gap:5px}
.legend-start {width:15px;height:15px;border:2px dashed #67b65c;border-radius:3px}
.legend-star {color:#e7a600;font-size:21px;line-height:1}
.legend-goal {color:var(--purple);font-size:23px;line-height:1}
.robot-caption {text-align:center;color:var(--muted);font-size:13px;line-height:1.4;min-height:18px}
.live-dot {display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;color:#538448;background:#edf8e8;border-radius:8px;padding:6px 8px}
.live-dot:before {content:"";width:8px;height:8px;border-radius:50%;background:#6ec15d}
.counters {display:flex;align-items:center;background:#f0ebff;border:1px solid #e0d6f9;border-radius:12px;padding:10px 8px;margin-bottom:12px}
.counters>div {flex:1;display:flex;align-items:center;justify-content:center;gap:10px;min-width:0}
.counters>div+div {border-left:2px solid #ded2f5}
.counters strong {font-size:29px;line-height:1;color:var(--purple-dark);font-weight:900}
.counters span {font-size:13px;color:#625486;font-weight:700}
.field-hint {font-size:14px;font-weight:700;margin-bottom:10px}
.command-palette {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding-bottom:6px}
.command {position:relative;display:flex;justify-content:center;align-items:center;gap:8px;min-height:62px;padding:8px 5px;border:2px solid var(--blue-dark);border-radius:10px;color:white;background:var(--blue);box-shadow:inset 0 2px 0 #79b3ff,0 2px 0 #d9e8ff}
.command:before {content:"";position:absolute;top:-2px;left:15px;width:22px;height:6px;background:white;border:2px solid var(--blue-dark);border-top:0;border-radius:0 0 5px 5px}
.command:after {content:"";position:absolute;bottom:-7px;left:15px;width:24px;height:8px;background:var(--blue);border:2px solid var(--blue-dark);border-top:0;border-radius:0 0 5px 5px}
.command b {font-family:system-ui;font-size:32px;line-height:1}
.command span {text-align:left;font-size:14px;font-weight:850;line-height:1.1}
.command small {display:block;font-size:12px;font-weight:650;margin-top:5px;color:#f2f8ff}
.forward,.left,.right {background:var(--blue);color:white}
.repeat-builder {display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:11px;padding:5px 8px 5px 11px;border:2px solid var(--orange-dark);border-radius:11px;background:var(--orange);box-shadow:inset 0 2px 0 #ffc868;color:#593400;font-size:13px;font-weight:700}
.repeat-builder>div {display:flex;align-items:center;gap:7px;min-width:0}
.repeat-symbol {font-family:system-ui;font-size:27px;font-weight:800;line-height:1}
.repeat-builder label {font-weight:850}
.repeat-builder select {width:49px;min-height:44px;background:#fff8e7;border:2px solid #d88e1c;border-radius:8px;padding:4px;font-size:17px;font-weight:900;color:#654000}
.repeat-builder button {border:2px solid #dc8b0c;border-radius:8px;background:#ffc75b;color:#583400;padding:4px 9px;font-size:13px;font-weight:850;white-space:nowrap}
.program-topline {display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;margin-top:2px}
.program-topline>span {font-size:12px;font-weight:850;color:#766b92;letter-spacing:.15px}
.text-button {background:transparent;border:0;font-size:13px;font-weight:750;padding:8px;color:#665384;border-radius:8px}
.text-button:hover {background:#eee7fb}
.program {position:relative;list-style:none;display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;gap:10px 8px;margin:0;padding:12px 10px 14px;min-height:154px;max-height:196px;overflow:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b4a0d9 transparent;border:2px solid #ded5ef;border-radius:12px;background-color:#f8f6ff;background-image:radial-gradient(#dfd5ef 1px,transparent 1px);background-size:14px 14px}
.program .empty {align-self:center;margin:auto;padding:17px 10px;text-align:center;font-size:14px;line-height:1.6;font-weight:650;color:#8a7d9f}
.empty>span {display:block;font-size:31px;line-height:1.2;margin-bottom:5px;color:#b1a1cf}
.program li {margin:0;padding:0}
.block {position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-width:94px;height:48px;padding:8px 8px 8px 18px;border:2px solid var(--blue-dark);border-radius:7px;background:var(--blue);color:white;font-size:14px;font-weight:800;box-shadow:inset 0 2px 0 #75affb,0 2px 0 #d4dcf5}
.block:before {content:"";position:absolute;top:-2px;left:13px;width:20px;height:5px;border:2px solid var(--blue-dark);border-top:0;border-radius:0 0 4px 4px;background:#f8f6ff}
.block:after {content:"";position:absolute;bottom:-7px;left:13px;width:22px;height:8px;border:2px solid var(--blue-dark);border-top:0;border-radius:0 0 4px 4px;background:var(--blue)}
.block small {position:absolute;top:5px;left:4px;font-size:10px;font-weight:750;opacity:.9}
.block-symbol {font-family:system-ui;font-size:25px;line-height:1}
.block-label {font-size:13px;line-height:1.1;white-space:nowrap}
.block.repeat {display:grid;grid-template-columns:1fr;justify-items:stretch;gap:4px;min-width:112px;height:69px;padding:6px 6px 10px 18px;border-color:var(--orange-dark);background:var(--orange);color:#563000;box-shadow:inset 0 2px 0 #ffca64,0 2px 0 #eadcc4;text-align:left}
.block.repeat:before {border-color:var(--orange-dark)}
.block.repeat:after {border-color:var(--orange-dark);background:var(--orange)}
.repeat-title {display:block;font-size:14px;font-weight:900;line-height:18px;padding-left:3px;white-space:nowrap}
.repeat-body {display:block;font-size:12px;font-weight:800;line-height:21px;margin-right:-8px;padding:1px 9px 1px 7px;background:var(--blue);color:white;border:1px solid var(--blue-dark);border-radius:5px 0 0 5px;box-shadow:-5px 0 0 #f8f6ff}
.block.repeat small {color:#6a3c00;font-size:9px}
.block.selected {outline:3px solid #ffcf34;outline-offset:2px}
.block.active {outline:4px solid #ffe84e;outline-offset:2px;filter:brightness(1.07);box-shadow:0 0 0 5px #ffcf4433}
.block.completed {opacity:.65}
.edit-tools {display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:7px}
.edit-tools>span {font-size:12px;font-weight:750;margin-right:auto}
.edit-tools button {min-width:44px;padding:4px 9px;border:1px solid #cbbbe9;background:#f1ebfc;border-radius:8px;font-size:13px;font-weight:750}
.edit-hint {font-size:12px;line-height:1.4;min-height:17px;color:var(--muted);margin:9px 0 11px}
.run-controls {display:flex;gap:9px}
.primary-button {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:51px;padding:11px 18px;border:2px solid #4c9d33;border-radius:12px;background:#67bd45;box-shadow:inset 0 2px 0 #91d975,0 3px 0 #458a31;color:white;font-size:16px;font-weight:900}
.run-controls .primary-button {flex:1}
.primary-button>span {font-size:17px;color:white}
.stop-button {border:2px solid #e25661;border-radius:12px;background:#ff7080;color:#fff;padding:8px 15px;font-size:14px;font-weight:800;box-shadow:inset 0 2px 0 #ff9eaa,0 3px 0 #c54450}
.status {font-size:13px;line-height:1.45;color:var(--muted);margin-top:12px;min-height:38px;padding:0 2px}
.status.error {color:#b3510f;font-weight:700}
.rewards {display:flex;align-items:stretch;gap:12px;margin-top:24px;padding:18px 0;border-top:2px solid #e0d8f1}
.reward-intro {flex:.95;min-width:125px;align-self:center}
.reward-intro h2 {font-size:23px;line-height:1.1;margin-top:6px}
.reward-intro p {font-size:13px;color:var(--muted);margin-top:7px}
.reward-card {flex:1;display:flex;align-items:center;justify-content:center;gap:11px;padding:13px 11px;border:2px solid #bce7f6;border-radius:16px;background:#e8f8ff;box-shadow:0 3px 0 #d4eaf4}
.reward-card.medium {background:#f0e9ff;border-color:#d5c5f3;box-shadow:0 3px 0 #e1d4f8}
.reward-card.large {background:#fff4cb;border-color:#ffda70;box-shadow:0 3px 0 #f6e3a8}
.reward-card h3 {font-size:14px;font-weight:850;line-height:1.3;white-space:nowrap}
.reward-card h3 span {color:#d58d06}
.reward-card p {font-size:12px;line-height:1.5;margin-top:5px;color:#615d76}
.figure {font-size:39px;line-height:1;color:#35a7cb;filter:drop-shadow(2px 3px 0 #9bd7e6)}
.medium .figure {font-size:48px;color:var(--purple);filter:drop-shadow(2px 3px 0 #c9b7ec)}
.large .figure {font-size:55px;color:#eea619;filter:drop-shadow(2px 3px 0 #e8c461)}
.fairness-note {font-size:12px;line-height:1.5;color:var(--muted);text-align:center;margin:0 auto 12px}
footer {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0 22px;border-top:1px solid #e4dcf2}
footer>span {font-size:11px;font-weight:700;letter-spacing:.3px;color:#86779e}
footer>div {display:flex;gap:4px}
.modal-backdrop {position:fixed;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto;background:#35275591;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.modal {position:relative;background:white;border:3px solid #cfc0ed;border-radius:24px;width:100%;max-width:590px;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow:auto;padding:31px;box-shadow:0 9px 0 #39225e44,0 25px 90px #25153f50}
.modal:before {content:"";display:block;position:absolute;left:0;right:0;top:0;height:9px;background:var(--purple)}
.modal-close {position:absolute;right:11px;top:12px;min-width:44px;border:0;border-radius:12px;background:#f0eaff;font-size:30px;color:#7853b1}
.modal h2 {font-size:28px;line-height:1.15;letter-spacing:-.7px;margin:0 0 16px;padding-right:20px}
.modal p {font-size:15px;line-height:1.55;margin:12px 0}
.modal h3 {font-size:17px;margin:20px 0 8px}
.modal ul,.modal ol {font-size:15px;line-height:1.6;padding-left:21px}
.modal li {margin:8px 0}
.modal label {display:block;font-size:14px;font-weight:800;margin:13px 0 6px}
.modal input {width:100%;max-width:100%;min-height:50px;padding:10px;background:#faf8ff;border:2px solid #d0c0e9;border-radius:11px;color:var(--ink);font-size:18px}
.modal input[type=password] {font-size:25px;letter-spacing:8px}
.modal .primary-button {margin-top:16px;width:100%}
.modal .muted {font-size:13px;color:var(--muted)}
.modal .form-error {color:#b34053;min-height:20px;font-weight:750}
.modal .form-success {color:#3a8a26;font-size:14px;font-weight:750}
.teacher-limits {display:grid;grid-template-columns:1fr 1fr;gap:13px}
.teacher-limits fieldset {margin:0;padding:9px 12px 14px;border:2px solid #dbcff0;border-radius:14px;background:#fcfaff}
.teacher-limits legend {font-size:14px;font-weight:850}
.teacher-limits label {font-size:12px}
.teacher-actions {display:flex;gap:9px;margin:12px 0}
.teacher-actions button {flex:1}
.outline-button {padding:10px 14px;border:2px solid #d3c4ed;border-radius:11px;background:#f6f1ff;color:#6c4aa2;font-size:14px;font-weight:800;min-height:47px}
.solution {font-family:ui-monospace,monospace;font-size:15px;line-height:1.8;word-break:break-word;background:#f1ebff;border:1px solid #ddd0f1;border-radius:12px;padding:13px}
.help-step {display:flex;gap:13px;align-items:flex-start;margin:19px 0}
.help-step>b {display:grid;place-items:center;min-width:34px;height:34px;border-radius:11px;background:var(--purple);color:white;font-size:16px}
.help-step p {margin:0}
.win-modal {text-align:center}
.win-modal h2 {padding:0;font-size:31px;color:var(--purple-dark)}
.win-kicker {font-size:14px!important;font-weight:900;letter-spacing:.7px;color:#956118}
.win-art {position:relative;display:grid;place-items:center;width:160px;height:165px;margin:15px auto 20px;border:5px solid #ffe08a;border-radius:50%;background:#fff3be;box-shadow:0 6px 0 #f5d16e}
.win-art:before,.win-art:after {content:"✦";position:absolute;font-size:42px;color:#f3ae1b}
.win-art:before {left:-24px;bottom:9px;transform:rotate(-12deg);color:#a382de;font-size:34px}
.win-art:after {right:-21px;top:-5px;transform:rotate(12deg)}
.win-art svg {height:135px;width:110px;filter:drop-shadow(4px 7px 0 #8b5d1c22)}
.win-art.small {background:#eaf8ff;border-color:#c0e9f7;box-shadow:0 6px 0 #96d5e9}
.win-art.small svg {height:105px;width:85px}
.win-art.medium {background:#f1e8ff;border-color:#ddc9fa;box-shadow:0 6px 0 #bca0e7}
.win-art.medium svg {height:122px;width:100px}
.win-art.large svg {height:141px;width:115px}
.win-stats {display:flex;justify-content:center;gap:24px;padding:16px 10px;border:2px solid #e0d5f4;border-radius:15px;background:#f6f0ff;font-size:13px;color:#74618e}
.win-stats b {display:block;color:#7651b2;font-size:25px;font-weight:900;margin-bottom:3px}
.storage-alert,.noscript {position:fixed;inset:0;display:grid;place-items:center;z-index:100;padding:30px;background:var(--paper);font-size:20px;line-height:1.5}
.rule-callout {padding:13px;background:#f2edff;border-radius:12px}
.modal details {font-size:14px;margin:20px 0}
.modal summary {cursor:pointer;min-height:44px;padding:12px 0;font-weight:800;color:#7451ad}
.print-only {display:none}
.welcome {text-align:center}
.welcome .eyebrow {font-size:13px;letter-spacing:.5px;margin:0 0 13px;color:var(--purple);font-weight:900}
.welcome h2 {padding:0;font-size:29px;color:var(--ink);margin-bottom:17px}
.welcome-mission {display:flex;align-items:center;justify-content:center;gap:17px;padding:14px;border:2px solid #e1d5f8;border-radius:17px;background:#f4eeff;margin-bottom:7px}
.welcome-robot {width:65px;height:65px}
.welcome-robot svg {width:100%;height:100%}
.welcome-mission>span:nth-child(even) {font-size:25px;color:#b29bd8;font-weight:900}
.welcome-stars {font-size:31px;color:#ffc421;filter:drop-shadow(0 2px 0 #d99406);letter-spacing:3px;white-space:nowrap}
.welcome-flag {font-size:46px;color:var(--purple)}
.welcome .welcome-goal {font-size:16px;margin:12px 0 17px}
.picture-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.picture-steps>div {position:relative;padding:12px 6px 13px;border:2px solid #cce0fc;border-radius:14px;background:#eff7ff}
.picture-steps>div:nth-child(2) {background:#fff5df;border-color:#ffe0a3}
.picture-steps>div:nth-child(3) {background:#edf9e9;border-color:#d1edc5}
.picture-steps>div>b {position:absolute;top:7px;left:7px;display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:var(--blue);color:white;font-size:12px;font-weight:900}
.picture-steps>div:nth-child(2)>b {background:#f6aa20}
.picture-steps>div:nth-child(3)>b {background:#67bd45}
.picture-icon {display:block;font-family:system-ui;font-size:31px;line-height:1.6;margin-top:6px;color:var(--blue);white-space:nowrap}
.picture-steps>div:nth-child(2) .picture-icon {color:#d58a0b}
.picture-steps>div:nth-child(3) .picture-icon {color:#5eab40}
.picture-steps strong {display:block;font-size:14px;font-weight:850}
.quick-commands {display:flex;justify-content:space-around;gap:10px;margin:16px 0 8px}
.quick-commands>span {flex:1;display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:750}
.quick-commands b {position:relative;font-family:system-ui;font-size:25px;line-height:1.2;background:var(--blue);border:2px solid var(--blue-dark);color:white;border-radius:8px;padding:6px;box-shadow:0 2px 0 #dce8fa}
.quick-commands b:after {content:"";position:absolute;bottom:-6px;left:20px;width:21px;height:6px;background:var(--blue);border:2px solid var(--blue-dark);border-top:0;border-radius:0 0 4px 4px}
.quick-commands>span:nth-child(3) b {background:var(--orange);border-color:var(--orange-dark);color:#633a00;font-size:22px;padding:8px}
.quick-commands>span:nth-child(3) b:after {background:var(--orange);border-color:var(--orange-dark)}
.welcome .tiny-rule {font-size:13px;line-height:1.5;color:var(--muted);margin:9px 0 12px}
.welcome-prizes {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0 15px}
.welcome-prizes>div {padding:9px 5px 11px;border:2px solid #bce5f7;border-radius:15px;background:#eaf8ff}
.welcome-prizes>div.medium {background:#f2eaff;border-color:#d8c6f4}
.welcome-prizes>div.large {background:#fff3cb;border-color:#ffdc78}
.welcome-prizes span {display:block;height:45px;line-height:45px;font-size:36px;color:#39a8d0}
.welcome-prizes .medium span {font-size:44px;color:var(--purple)}
.welcome-prizes .large span {font-size:51px;color:#eaa119}
.welcome-prizes strong {display:block;font-size:15px;font-weight:900;margin-top:5px}
.welcome-prizes p {font-size:13px;line-height:1.5;margin:6px 0 0}
.welcome .primary-button {margin-top:6px;min-height:54px;font-size:18px}
.claim-icon {font-size:64px;margin:9px 0 20px}
.full-width {width:100%;margin-top:12px}
@media(min-width:1100px) and (min-height:901px) {
  .program-panel {display:flex;flex-direction:column}
  .program {min-height:180px}
  .program-panel .status {margin-top:auto;padding-top:12px}
}
@media(max-width:1000px) {
  #app-shell {padding:0 20px}
  .site-header {gap:14px}
  .school {font-size:12px}
  .school span {font-size:11px}
  .brand {font-size:18px}
  .workspace {gap:14px;grid-template-columns:minmax(0,.97fr) minmax(0,1.1fr)}
  .panel {padding:14px}
  .panel-heading h2 {font-size:22px}
  .step-label {font-size:10px}
  .counters span {font-size:12px}
  .command {gap:5px}
  .command span {font-size:13px}
  .repeat-builder {padding-left:7px;gap:4px;font-size:12px}
  .repeat-builder>div {gap:5px}
  .repeat-builder button {font-size:13px;padding:4px 7px}
  .repeat-builder button span {display:none}
  .maze-legend {gap:10px;font-size:12px}
  .reward-card {gap:7px;padding:12px 8px}
  .reward-card h3 {font-size:13px}
  .reward-card p {font-size:11px}
  .figure {display:none}
  .reward-intro h2 {font-size:20px}
}
@media(min-width:731px) and (max-height:900px) {
  .site-header {min-height:62px}
  .brand {font-size:17px}
  .brand-mark {width:37px;height:37px;font-size:32px;border-radius:10px}
  .brand-second {font-size:10px;margin-top:4px}
  .intro {padding:14px 0 16px}
  .intro h1 {font-size:27px;letter-spacing:-.8px}
  .intro p:last-child {font-size:13px;margin-top:5px;line-height:1.4}
  .panel {padding:14px}
  .panel-heading {margin-bottom:9px}
  .panel-heading h2 {font-size:22px}
  .step-label {font-size:10px}
  .star-counter {padding:5px 10px;font-size:22px}
  .maze {max-width:374px}
  .maze-legend {padding:13px 0 6px;font-size:12px}
  .robot-caption {font-size:12px}
  .counters {padding:8px 6px;margin-bottom:8px}
  .counters strong {font-size:26px}
  .counters span {font-size:12px}
  .field-hint {font-size:13px;margin-bottom:8px}
  .command {min-height:52px;padding:7px 4px}
  .command b {font-size:27px}
  .command span {font-size:13px}
  .command small {font-size:11px;margin-top:3px}
  .repeat-builder {margin-top:9px;padding-top:2px;padding-bottom:2px}
  .program-topline {min-height:37px}
  .program {min-height:123px;max-height:123px;padding-top:10px;padding-bottom:12px}
  .edit-hint {margin:8px 0;font-size:12px}
  .edit-tools {margin-top:5px}
  .run-controls .primary-button {min-height:48px;font-size:15px}
  .status {font-size:12px;line-height:1.4;margin-top:10px;min-height:34px}
  .rewards {margin-top:21px;padding-top:17px}
  .modal:has(.welcome) {padding:23px 27px}
  .welcome h2 {font-size:26px;margin-bottom:12px}
  .welcome .eyebrow {font-size:12px;margin-bottom:10px}
  .welcome-mission {padding:7px}
  .welcome-robot {width:54px;height:54px}
  .welcome .welcome-goal {margin:9px 0 12px}
  .picture-steps>div {padding:8px 5px}
  .picture-icon {font-size:28px;line-height:1.4}
  .quick-commands {margin-top:12px;margin-bottom:5px}
  .welcome-prizes {margin:10px 0}
  .welcome-prizes span {height:36px;line-height:36px}
  .welcome-prizes>div {padding:7px 4px}
  .welcome .tiny-rule {font-size:12px;margin:7px 0}
  .welcome .primary-button {min-height:50px}
}
@media(min-width:731px) and (max-width:850px) {
  #app-shell {padding:0 14px}
  .site-header {gap:12px;min-height:70px}
  .school {max-width:230px;font-size:12px;line-height:1.25}
  .school span {font-size:10px}
  .quiet-button {font-size:12px;padding:8px 10px}
  .intro h1 {font-size:26px}
  .intro p:last-child {font-size:14px}
  .workspace {gap:12px;grid-template-columns:minmax(0,.96fr) minmax(0,1.08fr)}
  .panel {padding:12px}
  .panel-heading h2 {font-size:21px}
  .live-dot {display:none}
  .star-counter {padding:6px 8px}
  .counters {padding:9px 5px}
  .counters>div {gap:6px}
  .counters span {font-size:11px}
  .field-hint {font-size:13px}
  .command {gap:4px;min-height:59px}
  .command b {font-size:24px}
  .command span {font-size:12px}
  .command small {font-size:11px}
  .repeat-builder {font-size:11px;padding:4px 5px}
  .repeat-builder>div {gap:4px}
  .repeat-builder label {font-size:12px}
  .repeat-symbol {font-size:24px}
  .repeat-builder select {width:43px;font-size:16px}
  .repeat-builder button {padding:4px 6px;min-width:40px;font-size:17px}
  .program-topline>span {font-size:11px}
  .text-button {font-size:12px}
  .program {min-height:160px;max-height:182px;gap:10px 7px;padding-left:8px;padding-right:8px}
  .block {min-width:88px;padding-left:16px;padding-right:6px}
  .block.repeat {min-width:103px}
  .repeat-title {font-size:13px}
  .block-label {font-size:12px}
  .edit-hint {font-size:12px}
  .edit-tools>span {font-size:11px}
  .edit-tools button {padding:4px 6px;font-size:12px}
  .run-controls {gap:7px}
  .run-controls .primary-button {font-size:13px;padding:10px}
  .stop-button {font-size:13px;padding:7px 9px}
  .maze {gap:3px;padding:4px;border-width:5px}
  .maze-legend {font-size:11px;gap:8px}
  .robot-caption {font-size:12px}
  .reward-intro {min-width:110px}
  .reward-card h3 {font-size:12px}
}
@media(max-width:730px) {
  #app-shell {padding:0 14px}
  .site-header {min-height:91px;gap:10px;flex-wrap:wrap;padding:12px 0 10px}
  .brand {font-size:17px}
  .brand-mark {width:37px;height:37px;font-size:32px;border-radius:10px}
  .brand-second {font-size:10px;margin-top:4px}
  .quiet-button {margin-left:auto;font-size:13px;padding:8px 10px}
  .school {order:3;flex-basis:100%;max-width:none;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;font-size:11px;line-height:1.3}
  .school span {display:inline;margin:0;font-size:10px;white-space:nowrap}
  .intro {padding:18px 1px}
  .intro h1 {font-size:29px;line-height:1.12;letter-spacing:-.8px}
  .intro h1 br {display:block}
  .intro h1 span {margin-left:0}
  .intro p:last-child {font-size:14px;line-height:1.5;margin-top:9px}
  .workspace {grid-template-columns:minmax(0,1fr);gap:18px}
  .panel {padding:16px;border-radius:18px}
  .panel-heading {margin-bottom:13px}
  .panel-heading h2 {font-size:24px}
  .step-label {font-size:11px}
  .maze {max-width:430px;gap:4px;border-width:6px;padding:5px}
  .cell .star {font-size:32px}
  .goal-flag {font-size:35px}
  .maze-legend {padding-top:15px;font-size:12px;gap:14px}
  .robot-caption {font-size:12px}
  .field-hint {font-size:14px}
  .command {min-height:65px;gap:7px}
  .command b {font-size:29px}
  .command span {font-size:13px}
  .command small {font-size:12px}
  .repeat-builder {font-size:12px;padding:5px 6px;margin-top:12px}
  .repeat-builder>div {gap:5px}
  .repeat-builder button span {display:none}
  .repeat-builder button {min-width:44px;font-size:19px;padding:4px 8px}
  .repeat-builder select {width:47px}
  .counters span {font-size:12px}
  .program {min-height:166px;max-height:210px}
  .program-topline>span {font-size:11px}
  .edit-hint {font-size:12px}
  .run-controls .primary-button {font-size:15px}
  .status {font-size:13px}
  .rewards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:24px;padding-top:18px}
  .reward-intro {grid-column:1/-1;display:flex;align-items:center;gap:13px;margin-bottom:5px}
  .reward-intro>.step-label {display:none}
  .reward-intro h2 {font-size:21px;margin:0}
  .reward-intro h2 br {display:none}
  .reward-intro p {font-size:12px;margin:0}
  .reward-card {display:block;text-align:center;padding:12px 5px;border-radius:13px}
  .reward-card h3 {font-size:12px;white-space:normal}
  .reward-card p {font-size:11px;line-height:1.5}
  .figure {display:none}
  .fairness-note {font-size:11px}
  footer {flex-direction:column;gap:3px;padding-bottom:17px}
  footer>span {order:2;font-size:10px;margin-top:5px}
  footer .text-button {font-size:12px}
  .modal-backdrop {padding:12px}
  .modal {padding:28px 20px 23px;border-radius:21px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
  .modal h2 {font-size:25px}
  .welcome h2 {font-size:26px;margin-bottom:14px}
  .welcome .eyebrow {font-size:11px;margin-bottom:12px}
  .welcome-mission {gap:10px;padding:10px}
  .welcome-robot {width:54px;height:54px}
  .welcome-stars {font-size:25px;letter-spacing:1px}
  .welcome-flag {font-size:38px}
  .welcome-mission>span:nth-child(even) {font-size:20px}
  .welcome .welcome-goal {font-size:14px;margin:10px 0 15px}
  .picture-steps {gap:6px}
  .picture-steps>div {padding:11px 4px}
  .picture-steps>div>b {left:5px;top:5px;width:21px;height:21px;font-size:11px}
  .picture-icon {font-size:26px;margin-top:8px}
  .picture-steps strong {font-size:12px}
  .quick-commands {gap:7px}
  .quick-commands>span {font-size:11px}
  .quick-commands b {font-size:23px}
  .quick-commands>span:nth-child(3) b {font-size:20px}
  .welcome-prizes {gap:7px}
  .welcome-prizes>div {padding:8px 4px}
  .welcome-prizes strong {font-size:14px}
  .welcome-prizes p {font-size:12px}
  .welcome .tiny-rule {font-size:12px}
  .win-modal h2 {font-size:27px}
  .win-stats {gap:14px;font-size:12px}
  .teacher-limits {gap:10px}
  .teacher-limits fieldset {padding:8px}
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
/* Event identity and a quiet switch for busy school rooms. */
.school{font-size:15px}.school span{font-size:13px}.sound-button{min-width:90px;padding-left:10px;padding-right:10px}.sound-button>span{border:0;font-size:20px}.site-header{gap:14px}
@media(max-width:900px){.school{font-size:12px}.school span{font-size:11px}.site-header{gap:9px}.sound-button{min-width:78px;font-size:12px}.quiet-button{padding-left:10px;padding-right:10px}}
@media(max-width:730px){.school{font-size:12px}.school span{font-size:11px}.brand{margin-right:auto}.sound-button{margin-left:0}.quiet-button{font-size:11px}.school{width:100%}}
