/* LEVEL UP / modern retro: warm paper, arcade ink, orange hardware. */
:root{color-scheme:light;--bg:#f0eddf;--panel:#faf8ef;--panel2:#e5e4d5;--line:#b6bbab;--text:#202922;--muted:#59645a;--mint:#1f7056;--violet:#a84323;--ink:#202622;--orange:#ec7044;--paper:#f0eddf;font-family:"Trebuchet MS",Verdana,system-ui,sans-serif}
[hidden]{display:none!important}
body{background-color:var(--bg);background-image:radial-gradient(#59645a16 .7px,transparent .7px);background-size:5px 5px}
h1,h2,h3{font-family:"Arial Black","Trebuchet MS",sans-serif;letter-spacing:-.045em}
.eyebrow,.breadcrumbs,.phase-top,.brand small,.course-label,.level-status,.cartridge-label,.art-caption,.time-pill{font-family:"Courier New",monospace;letter-spacing:1.1px}
button,a,summary{transition:background .16s,transform .16s,box-shadow .16s}
:focus-visible{outline:3px solid #b64622;outline-offset:4px}
.sidebar{background:var(--ink);color:var(--paper);border-right:3px solid #111b16;--mint:#b7e5a2;--muted:#bdc5b7;--line:#566154}
.brand{font-family:"Arial Black",sans-serif;font-size:24px;letter-spacing:-1.3px}.brand-mark{background:var(--orange);border-radius:0;box-shadow:3px 3px 0 #070d09;color:#222a22}.brand small{color:#c7ccbb;font-size:8px;letter-spacing:1.7px}
.course-label{color:#bac6b4}.course-label span{border-color:#707c68}.main-nav a{border-radius:0;color:#ced6c6}.main-nav a.active{background:#bfdca0;color:#202c21;border:1px solid #d7ecc5;box-shadow:3px 3px 0 #10170f}.main-nav a:hover{background:#3b4c39;color:#f6f4de}.main-nav small{font-family:monospace}.nav-dot{background:#294a2f}
.mini-level{color:#bec6b7}.mini-level span{border-radius:0;border-color:#63735d}.mini-level.active{color:var(--paper)}.mini-level.active span{background:#eb7149;color:#202622;border-color:#eb7149}.sidebar-note{display:block;margin-left:0;min-height:44px;padding:10px 0;color:#bcd3a8}.sidebar-bottom p{color:#bec6b7}.sidebar-bottom progress{height:7px;border-radius:0}.sidebar-bottom progress::-webkit-progress-bar{background:#495443}.sidebar-bottom progress::-webkit-progress-value{background:#b7e5a2}.makecode-link{border-color:#566154}
.topbar{border-bottom:2px solid var(--ink);background:#f6f3e7;min-height:72px}.header-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.quiet-button,.icon-button{border-radius:0;border:1px solid var(--ink);background:#faf8ee;min-height:44px;font-weight:700}.quiet-button:hover,.icon-button:hover{background:#e0e6cf}.account-button{background:#202622;color:#f7f3df;max-width:230px;overflow-wrap:anywhere}.account-button:hover{background:#3c4e38}.breadcrumbs{color:#59645a}.breadcrumbs strong{color:#202622}.breadcrumbs span{color:#7b877a}
.account-banner{margin:0 auto;max-width:1450px;padding:10px 40px;background:#e2e6ce;border-bottom:1px dashed #758267;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}.account-banner strong{font-family:monospace;color:#294d34;margin-right:8px}.account-banner .text-button{color:#294d34;font-size:12px;font-weight:700;flex-shrink:0}
main{padding-top:30px}.page-heading{margin-bottom:23px}.page-heading h1{font-size:26px;font-weight:900}.page-heading .eyebrow{color:#a13e20}.status-dot{background:#bf4825;border-radius:0}.session-badge{color:#485746;font-family:monospace;font-size:11px}
.hero{background:#202622;border:3px solid #202622;border-radius:0;box-shadow:7px 7px 0 #afb99c;color:#f5f0d9;grid-template-columns:1.1fr 1fr;min-height:330px;padding:32px 36px;gap:20px;--mint:#b7e5a2;--muted:#d0d6c5}.hero::after{display:none}.hero::before{content:"";position:absolute;inset:0 auto 0 0;width:7px;background:repeating-linear-gradient(to bottom,#ec7044 0 14px,#202622 14px 20px);pointer-events:none}.hero .eyebrow{border:1px solid #adb799;color:#d7e5b6;background:transparent;border-radius:0;font-size:11px;padding:6px 9px}.hero h1{font-size:clamp(36px,4.4vw,64px);line-height:1;letter-spacing:-3px;margin:22px 0}.hero h1 em{color:#f18553}.hero p{color:#d0d6c5;font-size:15px;max-width:420px}.hero .button{background:#b7e5a2;color:#233020;border-color:#ccecad;box-shadow:4px 4px 0 #080f08}.hero .button:hover{background:#d5f2c3}.hero .button:active{box-shadow:1px 1px 0 #080f08}
.retro-art{border-left:1px solid #56624e;padding-left:24px;align-content:center;min-width:0}.retro-art img{display:block;width:min(100%,310px);height:auto;aspect-ratio:1;object-fit:contain;image-rendering:auto}.cartridge-label{display:block;font-size:10px;color:#c9d7b5;border-bottom:1px solid #53614b;width:100%;padding-bottom:8px}.art-caption{font-size:10px;color:#b7e5a2;padding-top:5px}.art-caption span{animation:cursor-blink 1.2s steps(2,start) 5}@keyframes cursor-blink{50%{opacity:0}}
.mission-meta{margin-top:20px;font-size:12px}.mission-meta b{font-weight:600}.section-heading h2{font-size:20px}.section-heading span{font-family:monospace;font-size:12px}.section-heading{margin-top:32px}
.phase-nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.phase-button{border:1px solid #86927b;border-radius:0;background:#e6e9d8;padding:13px 10px;min-height:88px;box-shadow:2px 2px 0 #bec5ad}.phase-button strong{font-size:12px}.phase-top{font-size:10px;color:#4e6148}.phase-button.active{background:#253e2e;color:#f1f3de;border-color:#253e2e;box-shadow:3px 3px 0 #a7b297}.phase-button.active .phase-top{color:#ccdfbb}.phase-button:hover{background:#d6ddc4}.phase-button.active:hover{background:#365640}.phase-button.done .phase-top::after{color:inherit}
.activity{border:2px solid #364935;border-radius:0;background:#fbf9ee;box-shadow:5px 5px 0 #c8cdb8;padding:28px}.activity h2{font-size:29px;line-height:1.15;letter-spacing:-.8px}.activity .eyebrow{color:#985030}.activity .intro{font-size:15px;line-height:1.75;color:#485847}.activity-bottom{border-top:1px dashed #9eaa93}.activity .time-pill{color:#596b52}.text-button{font-size:12px;color:#4c6144}.text-button:hover{color:#8c341b}
.button{border:1px solid #263622;border-radius:0;box-shadow:3px 3px 0 #283c24;background:#bedd99;color:#23351d;font-size:14px;padding:12px 20px;font-family:"Trebuchet MS",sans-serif}.button:hover{background:#d5edbb;box-shadow:4px 4px 0 #283c24;transform:translate(-1px,-1px)}.button:not(:disabled):active{box-shadow:1px 1px 0 #283c24;transform:translate(2px,2px)}.button.secondary{background:#eee6d3;color:#30412b;border-color:#647359}.button.secondary:hover{background:#e2d5b4}.button.danger{background:#ef9c7b;color:#442010}.button:disabled{box-shadow:none;opacity:.55}
.choice{border:1px solid #8e9d83;border-radius:0;background:#f1f0e2;color:#283923;font-size:15px;min-height:58px}.choice:hover{background:#e4e8ce;border-color:#435d37}.choice.selected{background:#dbe8c5;border-color:#2c673f;box-shadow:inset 4px 0 0 #2c673f}.choice .letter{background:#dce3ca;color:#354b29;border-radius:0;font-family:monospace}.feedback{border-radius:0;border-left:4px solid #2f7147;background:#dfebd0;color:#23492c;font-size:14px}.feedback.error{border-color:#b04b24;background:#f7e0cb;color:#82351b}
.side-card{background:transparent;border:0;border-top:3px solid #8a957b;border-radius:0;padding:20px 4px}.side-card h3{font-size:17px}.side-card p,.side-card li{font-size:13px;color:#536449}.skill-preview{background:#e2e8d2;border:2px solid #718364;padding:21px}.skill-preview small{color:#4d6841;line-height:1.6}.skill-symbol{color:#92502b;border:2px solid #936946;background:#f0d9b3;border-radius:0;box-shadow:3px 3px 0 #c5ae87}.skill-preview h3{color:#2c482e}.side-card .divider{background:#adb99b}.mini-steps{color:#3b603b}
.role-card{border-radius:0;background:#e8ebd7;border:1px solid #9baa8a}.role-card strong{color:#315f3b}.role-card:nth-child(2) strong{color:#954a26}.role-card p{color:#536049}.steps{color:#3d5137;font-size:15px}.check-label{border-radius:0;background:#e8edd8;border-color:#93a27f;font-size:14px}.hint{border-radius:0;border-color:#a6b196;background:#f1f2e3;font-size:14px}.hint summary{color:#7b4a23;font-weight:700}.hint p{color:#526045}.flow div{border-radius:0;background:#e3e8cf;border:1px solid #95a581;color:#314928}.flow b{color:#517b45}.select-task select,textarea{border-radius:0;background:#fffdf2;color:#263623;border:1px solid #7b8f6b;font-size:16px}.select-task{font-size:15px}.question{color:#304529;font-size:15px}.reflection-label{font-size:15px}textarea:focus,input:focus,select:focus{outline-color:#a84821}.unlock-list li{color:#5c6a51}.unlock-list .done{color:#275d38}.celebration{border-radius:0;background:#e2eccd;border:2px solid #427140;box-shadow:4px 4px 0 #acbf92}.celebration h3{color:#2f5c32}.celebration p{color:#425c36}
.board{border:3px solid #394e39;border-radius:0;background:#263d2c;padding:9px;box-shadow:4px 4px 0 #b7bea6}.cell{border-radius:0;background:#557851;border-color:#79906a;color:#edf2c6}.cell.wall{background:repeating-linear-gradient(135deg,#233b29,#233b29 5px,#314e35 5px,#314e35 10px);border-color:#8aa177}.cell.goal{background:#bed780;color:#263b22;border-color:#e8f0b0}.cell.star{color:#f6cc64}.cell.robot::after{background:#f28c50;color:#293922;border:3px solid #fce3a2;border-radius:0;box-shadow:2px 2px 0 #1d2b17;font-size:22px}.board-legend{color:#4e6544;font-size:11px}.lab-controls h3{font-size:14px}.direction-pad button{background:#dbe4c8;border:1px solid #647a50;border-radius:0;color:#2c4324;box-shadow:2px 2px 0 #788966}.direction-pad button:hover{background:#bdd599}.program{border-radius:0;border:1px dashed #748564;background:#e7edd7}.program span{border-radius:0;background:#becda5;color:#243b1a}.program span.executing{background:#ea8350;color:#2b271b}.program em{color:#506842;font-size:12px}.lab-status{color:#365c35;font-size:14px}.program-tools .text-button{font-size:12px}.challenge-tab{border-radius:0;border:1px solid #92a17e;background:#e7ebd8;color:#425838;font-size:12px}.challenge-tab.active{background:#f1d5aa;border-color:#a96932;color:#703c1c}.challenge-detail p{color:#4d6343;font-size:14px}
.debug-original{background:#e8edda;padding:16px;border:1px solid #95a483}.debug-commands{display:flex;gap:9px;margin-top:12px}.debug-commands span{background:#263d2e;color:#e5efd4;padding:9px 12px;font:700 20px monospace}.debug-commands .bug-command{background:#a34726;color:#fff2d6}.debug-track{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:16px 0 24px}.debug-cell{position:relative;min-height:85px;border:2px solid #5f7851;background:#dbe7c5;display:grid;place-items:center;color:#627a4e}.debug-cell small{font:10px monospace}.debug-cell b{font:26px monospace}.debug-cell.target{background:#b7cf8b}.debug-cell.occupied::after{content:'◉';position:absolute;top:33px;width:30px;height:30px;background:#ee8a4e;color:#273921;border:2px solid #5b5b31;text-align:center;line-height:24px;box-shadow:2px 2px 0 #7c8d65}.debug-test{margin-top:16px}.debug-transfer{font-size:14px;border-top:1px dashed #9bac8c;padding-top:18px;margin-top:22px}
.levels-grid{gap:24px}.level-card{border:2px solid #78886d;border-radius:0;background:#f7f5e8;padding:18px;box-shadow:4px 4px 0 #c8ceb9;position:relative}.level-card.available{background:#e2ebcc;border:2px solid #345632}.level-art{background:#202622;position:relative;width:100%;padding:6px;display:grid;place-items:center;border:1px solid #3b4938}.level-art img{width:160px;height:160px;object-fit:contain}.level-card .level-number{position:absolute;left:10px;top:9px;color:#f2eacb;font:700 19px monospace}.level-card.available .level-number{color:#b7e5a2}.level-card h2{font-size:22px;margin:20px 0 10px}.level-card p{font-size:14px}.level-card small{font-size:11px;color:#9b4825}.level-card .level-status{color:#56674b;font-size:10px;letter-spacing:.7px}.level-card .button{font-size:13px}.skills-grid{gap:18px}.skill-card{border-radius:0;border:1px solid #899a7a;background:#e6ead8;box-shadow:3px 3px 0 #c2cbb1}.skill-card.unlocked{border:2px solid #3e6b3c;background:#d7e5bd}.skill-card.unlocked .skill-symbol{border-color:#3a6a35;color:#2b5227;background:#c4dca0}.skill-card p{font-size:13px}
footer{border-top:2px solid #4d6244;color:#516447;font-size:10px;flex-wrap:wrap}.footer-editor{color:#375f36;font-size:12px}#storage-status{font-size:11px}.toast{border-radius:0;background:#263f2b;color:#e2edce;border:2px solid #b4ca91;box-shadow:4px 4px 0 #101b1066}.skip-link{background:#e57945;color:#172315}
dialog{background:#f5f2e4;color:#293b23;border:3px solid #2e482b;border-radius:0;box-shadow:8px 8px 0 #182a18aa;max-width:700px}dialog::backdrop{background:#182518c9;backdrop-filter:blur(3px)}dialog h2{font-size:30px}dialog p{color:#53624a}.teacher-note{border-color:#b2bda3}.teacher-note h3{color:#34562e}.teacher-note p{font-size:14px}#auth-dialog{max-width:500px}.auth-tabs{display:flex;gap:8px;margin-bottom:24px}.auth-tabs button{flex:1;font-size:14px}.auth-tabs button.active{background:#273d2b;color:#f0f2d8;border-color:#273d2b}#auth-form label{display:block;font-size:14px;font-weight:700;margin:17px 0 8px}#auth-form input{min-height:50px;border:1px solid #829571;background:#fffdf3;color:#22381d;width:100%;padding:10px 12px;font-size:16px;border-radius:0}.password-field{display:flex;gap:8px;align-items:center}.password-field input{min-width:0}.password-field button{min-width:75px;border:1px solid #8f9d7e;min-height:50px}.auth-hint{font-size:12px;margin:10px 0}.auth-footnote{font-size:12px;margin:20px 0 0;border-top:1px dashed #a5b196;padding-top:14px}.auth-feedback{font-size:13px;color:#8b3c20;min-height:24px}#auth-submit{width:100%;margin:5px 0 8px}
@media(max-width:1200px){.phase-button strong{font-size:11px}.phase-top{font-size:9px}.phase-button{padding:12px 7px}.hero{padding:28px}.hero h1{font-size:49px}.header-actions{gap:6px}.account-banner{padding:10px 26px}}
@media(max-width:1100px){.sidebar{border-right:0;border-bottom:3px solid #121e13}.topbar{gap:16px}.hero h1{font-size:52px}.lesson-layout{gap:26px}.activity h2{font-size:28px}.retro-art img{max-width:275px}.phase-button strong{font-size:12px}.phase-button{padding:12px 9px}}
@media(max-width:850px){.topbar{flex-wrap:wrap;gap:8px}.breadcrumbs{font-size:9px}.header-actions{margin-left:auto}.quiet-button{font-size:11px;padding:8px 10px}.account-banner{font-size:12px;gap:10px}.hero h1{font-size:43px;letter-spacing:-2px}.hero p{font-size:14px}.phase-nav{display:flex;overflow-x:auto;padding:4px 4px 10px}.phase-button{flex:1 0 118px}.phase-top{font-size:10px}.page-heading h1{font-size:22px}.section-heading h2{font-size:18px}}
@media(max-width:760px){.sidebar{padding:18px 20px}.main-nav a{font-size:12px}.brand{font-size:24px}.account-banner{padding:12px 20px;align-items:flex-start;flex-direction:column;gap:0}.account-banner .text-button{padding:8px 0;min-height:44px}.topbar{padding:12px 20px}.hero{padding:24px;gap:12px}.retro-art{padding-left:15px}.retro-art img{max-width:230px}.cartridge-label{font-size:9px}.art-caption{font-size:9px}.activity{padding:25px}.lesson-aside{gap:20px}.section-heading span{font-size:11px}.mission-meta{font-size:11px;gap:15px}}
@media(max-width:500px){.hero{grid-template-columns:1fr;padding:28px 25px;box-shadow:5px 5px 0 #afb99c}.hero h1{font-size:49px}.hero p{font-size:15px}.retro-art{height:auto;border-left:0;border-top:1px solid #53614b;padding:15px 0 0;margin-top:25px;grid-template-columns:1fr 1fr;gap:5px 12px}.retro-art img{grid-column:2;grid-row:1/3;width:150px;max-width:100%;height:auto}.cartridge-label{grid-column:1;border-bottom:0;line-height:1.8;font-size:10px}.art-caption{grid-column:1;font-size:9px;align-self:start}.page-heading{align-items:flex-start}.page-heading h1{font-size:22px}.page-heading .eyebrow{font-size:9px}.session-badge{font-size:10px;margin-top:4px}.header-actions{width:100%;justify-content:flex-start}.breadcrumbs{max-width:none}.account-button{max-width:185px}.quiet-button{font-size:11px;min-height:44px}.topbar{padding:12px 16px}.account-banner{padding:10px 16px}.activity{padding:23px 16px}.activity h2{font-size:26px}.section-heading{gap:12px}.section-heading h2{font-size:17px}.section-heading span{flex-shrink:0;font-size:10px}.mission-meta{font-size:10px;gap:8px}.level-art img{width:180px;height:180px}.debug-commands{gap:6px}.debug-commands span{font-size:17px;padding:8px}.debug-cell{min-height:77px}.debug-cell small{font-size:8px}.debug-cell.occupied::after{top:30px}.debug-track{gap:4px}.skills-grid{grid-template-columns:1fr 1fr}.skill-card h2{font-size:12px}.activity-bottom .button{font-size:12px}.auth-tabs{margin-bottom:18px}dialog{padding:22px 18px}dialog h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){.art-caption span{animation:none}}

.auth-tabs button{transition:none}

/* Use the same pixel artwork wherever an achievement appears. */
.skill-symbol.skill-art{width:96px;height:96px;background:#202622;border:2px solid #637254;box-shadow:3px 3px 0 #b3bfa0;overflow:hidden}
.skill-art img{display:block;width:100%;height:100%;object-fit:contain}
.skill-card:not(.unlocked) .skill-art img{filter:saturate(.72)}
.skill-card.unlocked .skill-art{background:#202622;border-color:#3a6a35;box-shadow:3px 3px 0 #8caa70}
.celebration .skill-art{width:112px;height:112px;margin:0 auto 18px}
@media(max-width:500px){.skill-card .skill-art{width:80px;height:80px}}

/* The public entry screen stays usable on tablets and small phones. */
.login-gate{width:min(1040px,calc(100% - 64px));min-height:660px;margin:clamp(32px,8vh,100px) auto;display:grid;grid-template-columns:.9fr 1.1fr;border:2px solid #354b32;box-shadow:8px 8px 0 #b7c0a6;background:#f7f4e7}
.login-poster{padding:36px;background:#25372b;color:#eee8ce;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:32px;border-right:2px solid #354b32}
.login-poster .brand{align-self:flex-start}.login-poster img{width:min(100%,280px);height:auto;image-rendering:auto}.login-poster .cartridge-label{color:#d3dcbb;line-height:1.6;text-align:center}
.login-copy{padding:52px 38px;align-self:center;min-width:0}.login-copy .eyebrow{color:#865031;font-size:10px;line-height:1.7}.login-copy h1{font:700 clamp(34px,4vw,52px)/1.08 'Trebuchet MS',sans-serif;letter-spacing:-2px;margin:22px 0}.login-copy h1 em{color:#a64e29;font-style:normal}.login-copy>p{color:#4a5e42;font-size:15px;line-height:1.8}.login-copy .button-row{margin:26px 0;gap:14px;flex-wrap:wrap}.login-copy .login-privacy{font-size:12px;border-top:1px dashed #a0ad91;padding-top:20px}.login-copy #gate-status{font-size:12px;margin-bottom:0}.login-copy .text-button{min-height:44px}
@media(max-width:760px){.login-gate{width:calc(100% - 40px);grid-template-columns:1fr;min-height:0;margin:24px auto}.login-poster{padding:24px;display:grid;grid-template-columns:1fr 130px;gap:16px;border-right:0;border-bottom:2px solid #354b32}.login-poster img{grid-column:2;grid-row:1/3;width:130px}.login-poster .brand{font-size:24px}.login-poster .cartridge-label{text-align:left;align-self:start;font-size:9px}.login-copy{padding:30px}.login-copy h1{font-size:44px}}
@media(max-width:400px){.login-gate{width:calc(100% - 28px);margin:16px auto;box-shadow:5px 5px 0 #b7c0a6}.login-poster{padding:18px;grid-template-columns:1fr 82px;gap:10px}.login-poster .brand{font-size:20px;gap:8px}.login-poster .brand-mark{width:36px;height:36px;font-size:25px}.login-poster .brand small{font-size:7px}.login-poster img{width:82px}.login-copy{padding:24px 20px}.login-copy h1{font-size:38px}.login-copy .button-row{flex-direction:column;align-items:stretch}.login-copy .button{width:100%}}

/* Level 2 and the personal game shelf. */
.level2-hero h1{font-size:clamp(34px,4vw,53px)}.level2-activity{max-width:960px;margin:0 auto}.numbered-guide{padding-left:25px}.numbered-guide li{padding-left:8px;margin:0 0 20px}.numbered-guide li::marker{font:700 17px monospace;color:#9c4828}.numbered-guide a,.level2-activity p a,.lesson-source a{color:#315f3b;text-decoration:underline;text-underline-offset:3px}.transfer-strip{display:grid;grid-template-columns:repeat(3,1fr);border:2px solid #657c54;margin:24px 0;background:#e2e8cf}.transfer-strip span{padding:18px 12px;font:11px/1.8 monospace;border-right:1px solid #98a586}.transfer-strip span:last-child{border:0}.transfer-strip strong{font-family:'Trebuchet MS',sans-serif;font-size:14px}.network-demo{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center;margin:25px 0}.network-demo>div:not(.network-arrows){padding:22px;background:#e1e9cf;border:2px solid #637951;box-shadow:3px 3px #b7c2a6}.network-demo h3{font-size:20px;margin:10px 0}.network-demo p{font-size:14px}.network-arrows{display:flex;flex-direction:column;gap:12px;font:700 14px monospace;color:#8f4428}.file-tree{background:#253c2b;color:#e6ebd4;border-left:5px solid #df8954;padding:22px;font:15px/1.9 monospace;margin:20px 0;overflow-x:auto}.block-recipe{background:#e5ead5;border:1px solid #7e946b;padding:20px;margin:22px 0;display:grid;gap:12px}.block-recipe>span{font:11px monospace;color:#80502b}.block-recipe b{padding:14px;background:#d0dfb7;border-left:4px solid #577445;font:14px/1.6 monospace}.lesson-source{font-size:12px;margin-top:22px}.game-storage{border-block:2px solid #738664;padding:18px 0;display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between;font-size:13px}.game-storage strong{font:12px/1.8 monospace}.game-create{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin-top:26px}.game-create label{font-weight:700}.game-create input{min-width:0;width:100%;min-height:48px;padding:12px;border:1px solid #6e855c;background:#fffdf1;color:#273b25;font:16px 'Trebuchet MS',sans-serif}.game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}.game-card{min-width:0;border:2px solid #6c825a;background:#f6f3e4;padding:24px;box-shadow:4px 4px #bdc6aa}.game-card-heading{display:flex;gap:14px;align-items:center}.game-card-heading>div{min-width:0}.game-card-heading img{background:#25352b;flex-shrink:0}.game-card h2{font-size:24px;margin:6px 0;overflow-wrap:anywhere}.game-card p{font-size:13px;overflow-wrap:anywhere}.game-card .eyebrow{font-size:9px}.game-upload-form{display:grid;gap:12px;margin:22px 0;padding-top:18px;border-top:1px dashed #a3b18e}.game-upload-form label{font-size:13px;font-weight:700}.game-upload-form input{width:100%;min-width:0;font-size:14px;padding:8px 0;min-height:48px;color:#354d2e}.game-upload-form input::file-selector-button{min-height:44px;padding:8px;border:1px solid #698458;background:#e4eacf;color:#273b25;cursor:pointer;margin-right:8px}.game-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.game-actions .text-button{min-height:44px}.game-actions .button{font-size:13px}.empty-games{grid-column:1/-1;padding:38px;border:2px dashed #8e9e7c;text-align:center}.empty-games h2{font-size:24px}.download-name{color:#546c44}.main-nav{flex-wrap:wrap}.main-nav a{white-space:nowrap}
@media(max-width:1100px){.sidebar{grid-template-columns:1fr;gap:16px}.sidebar .brand{justify-self:center}.main-nav{justify-content:center}.game-grid{gap:18px}}
@media(max-width:760px){.game-grid{grid-template-columns:1fr}.game-create{grid-template-columns:1fr}.game-create button{width:100%}.network-demo{grid-template-columns:1fr}.network-arrows{flex-direction:row;justify-content:center}.transfer-strip{grid-template-columns:1fr}.transfer-strip span{border-right:0;border-bottom:1px solid #98a586}.level2-hero h1{font-size:38px}.game-card{padding:20px}.game-storage{gap:8px}.main-nav a{flex:1 1 40%;font-size:12px}.main-nav{gap:6px}}
@media(prefers-reduced-motion:no-preference){.game-card{animation:shelf-in .25s ease-out}@keyframes shelf-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

.workstation-guide{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;margin:26px 0;padding:24px;border:2px solid #6c825a;background:#e6ebd8}.workstation-guide>div{min-width:0}.workstation-guide h2{font-size:21px;margin:12px 0}.workstation-guide p{font-size:14px;line-height:1.8}.workstation-guide .eyebrow{font-size:10px}.workstation-guide .button{font-size:13px}.reading-notice{border:2px solid #6c825a;border-left:6px solid #ac512b;background:#f3e5c9;padding:20px 24px;margin-bottom:24px}.reading-notice>strong{font:700 13px monospace}.reading-notice p{font-size:14px;line-height:1.7;margin:12px 0}.reading-notice a{font-size:13px;text-decoration:underline;color:#385432}.level2-activity :disabled{cursor:default}
@media(max-width:760px){.workstation-guide{grid-template-columns:1fr;padding:20px;gap:16px}.workstation-guide>div+div{border-top:1px dashed #899b78;padding-top:18px}.reading-notice{padding:18px}}

/* Small pixel-like symbols and short, concrete instructions for Level 2. */
.lesson-icon{display:inline-block;width:26px;height:26px;vertical-align:middle;flex-shrink:0}.button .lesson-icon{width:20px;height:20px}.workstation-guide h2{display:flex;gap:12px;align-items:center}.quest-steps{list-style:none;padding:0;margin:24px 0;display:grid;gap:16px}.quest-steps li{display:grid;grid-template-columns:54px minmax(0,1fr);gap:18px;border:1px solid #a5b193;padding:20px;background:#f0f0df}.quest-icon{display:grid;place-items:center;align-self:start;position:relative;width:50px;height:50px;border:2px solid #6f835b;background:#dce6c8;color:#304d2c;box-shadow:3px 3px 0 #b7c5a2}.quest-icon .lesson-icon{width:28px;height:28px}.quest-icon small{position:absolute;right:-8px;bottom:-8px;background:#a44c28;color:#fff6df;border:2px solid #f0f0df;min-width:22px;text-align:center;font:700 11px/20px monospace}.quest-steps h3{font-size:18px;margin:0 0 8px;line-height:1.35}.quest-steps p{margin:0;font-size:15px;line-height:1.8;color:#3d5137}.quest-steps a{color:#315f3b;text-decoration:underline;text-underline-offset:3px}.transfer-strip>span{display:flex;gap:12px;align-items:center}.transfer-strip strong{font-size:13px;line-height:1.5}.analogy-icon{display:inline-grid;place-items:center;width:60px;height:60px;border:2px solid #6b8158;background:#f5f0d8;color:#385430;box-shadow:3px 3px 0 #b7c5a2}.analogy-icon .lesson-icon{width:38px;height:38px}.term-label{display:inline-block;border-top:1px dashed #96a980;padding-top:12px;font:700 12px/1.6 monospace}.locker-demo{grid-template-columns:minmax(0,1fr) 130px minmax(0,1fr);gap:20px}.locker-demo h3{line-height:1.25}.parcel-token{display:block;align-self:center;color:#a44c28;transition:transform .4s ease}.locker-demo[data-direction="upload"] .parcel-token{transform:translateX(34px)}.locker-demo[data-direction="download"] .parcel-token{transform:translateX(-34px)}.locker-demo[data-direction="upload"]>div:last-child,.locker-demo[data-direction="download"]>div:first-child{border-color:#a44c28;box-shadow:4px 4px #d9a876}.transfer-play{border:1px dashed #80936a;padding:20px;background:#edf0dd}.transfer-play p{font-size:15px;line-height:1.7;min-height:3.4em}.transfer-play small{font-size:12px;color:#526748}.transfer-play .button-row{margin-top:14px}.transfer-play [aria-pressed="true"]{background:#e9cea4;border-color:#a44c28}.copy-reminder{display:flex;align-items:center;gap:16px;padding:18px 0}.copy-reminder p{margin:0;font-size:14px;line-height:1.7}.icon-heading{display:flex;align-items:center;gap:12px;font-size:20px;line-height:1.4}.folder-trail{display:grid;gap:8px;padding:20px;background:#263d2b;color:#eef0d8;border-left:5px solid #d88250}.folder-trail span{display:flex;align-items:center;gap:12px;font:14px/1.5 monospace;overflow-wrap:anywhere}.folder-trail span:nth-child(2){padding-left:16px}.folder-trail span:nth-child(3){padding-left:32px}.folder-trail span:nth-child(4){padding-left:48px}.folder-trail .lesson-icon{width:22px;height:22px}.mini-mission{margin:24px 0;padding:20px;border:2px dashed #788f60;background:#e6edd5}.mini-mission h3{display:flex;align-items:center;gap:12px;font-size:18px;margin:0 0 12px}.mini-mission p{margin:0;font-size:15px;line-height:1.8}.simple-rule{padding:18px;background:#f2e0be;border-left:5px solid #ac512b;font-size:15px;line-height:1.8}.concept-question{min-width:0;border:1px solid #91a37d;padding:18px;margin:24px 0;background:#f4f4e6}.concept-question legend{padding:0 8px;font-size:16px;font-weight:700;line-height:1.7;max-width:100%}.concept-question legend>span{color:#994924;font-family:monospace;margin-right:8px}.concept-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.concept-option{display:flex;gap:12px;align-items:center;min-width:0;padding:16px;border:1px solid #92a480;background:#e9eedb;cursor:pointer;font-size:14px;line-height:1.6;min-height:76px}.concept-option:has(input:checked){background:#d5e5b9;border:2px solid #49663b;padding:15px}.concept-option:focus-within{outline:2px solid #a44c28;outline-offset:3px}.concept-option input{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:#3d6338}.concept-option .lesson-icon{width:24px;height:24px}.answer-hint{font-size:14px;line-height:1.7;color:#914923;margin:14px 0 0}.answer-hint:empty{display:none}.answer-hint.correct{color:#315c31}
@media(max-width:760px){.locker-demo{grid-template-columns:1fr;gap:16px}.locker-demo .network-arrows{flex-direction:column;align-items:center;min-height:100px}.locker-demo[data-direction="upload"] .parcel-token{transform:translateY(10px)}.locker-demo[data-direction="download"] .parcel-token{transform:translateY(-10px)}.concept-options{grid-template-columns:1fr}.quest-steps li{padding:16px;gap:14px;grid-template-columns:44px minmax(0,1fr)}.quest-icon{width:40px;height:44px}.quest-steps h3{font-size:17px}.transfer-strip>span{padding:14px}.folder-trail{padding:16px}.folder-trail span:nth-child(4){padding-left:32px}}
@media(max-width:400px){.quest-steps li{padding:14px 12px;gap:12px;grid-template-columns:34px minmax(0,1fr)}.quest-icon{width:32px;height:36px}.quest-icon .lesson-icon{width:22px;height:22px}.concept-question{padding:14px 12px}.concept-option{padding:12px;gap:10px}.concept-option:has(input:checked){padding:11px}.concept-option .lesson-icon{width:20px;height:20px}.concept-question legend{font-size:15px}.folder-trail span{font-size:12px}.folder-trail span:nth-child(4){padding-left:24px}}

.concept-question[data-result="wrong"]{border:2px solid #a13d26;background:#fae7dc}.concept-question[data-result="wrong"] .concept-option:has(input:checked){border-color:#a13d26;background:#f1caba}.concept-question[data-result="correct"]{border:2px solid #416739;background:#e4eed8}.concept-question[data-result="unanswered"]{border:2px dashed #9b7330}.upload-status{margin:24px 0;padding:26px;border:3px solid #5b7850;background:#e3eccf;box-shadow:5px 5px 0 #b2c2a1}.upload-heading-row{display:flex;align-items:center;gap:18px}.upload-heading-row>div{min-width:0;flex:1}.upload-heading-row h2{font-size:24px;line-height:1.25;margin:0 0 10px;overflow-wrap:anywhere}.upload-heading-row p{font-size:15px;line-height:1.7;margin:0;overflow-wrap:anywhere}.upload-heading-row>strong{font:700 26px monospace;white-space:nowrap}#upload-symbol .lesson-icon{width:48px;height:48px}#upload-bar{display:block;width:100%;height:22px;margin-top:22px;accent-color:#407137;border:1px solid #789367;border-radius:0;background:#f5f4e1}#upload-bar::-webkit-progress-bar{background:#f5f4e1}#upload-bar::-webkit-progress-value{background:#407137}#upload-bar::-moz-progress-bar{background:#407137}.upload-status[data-stage="done"]{border-color:#244d2b;background:#2d5935;color:#fff8df;box-shadow:6px 6px 0 #a4bc87}.upload-status[data-stage="done"] p,.upload-status[data-stage="done"] h2{color:#fff8df}.upload-status[data-stage="error"]{border-color:#a13d26;background:#fae2d1;color:#6e2818}.game-card.game-card-saved{border:3px solid #365f33;box-shadow:5px 5px 0 #a6bc8c}.game-saved-badge{padding:12px;margin:-2px 0 20px;background:#365f33;color:#fff8df;font-size:14px;font-weight:700}.upload-status:focus{outline:2px solid #ad542c;outline-offset:4px}
@media(max-width:500px){.upload-status{padding:20px 16px}.upload-heading-row{gap:12px;flex-wrap:wrap}.upload-heading-row h2{font-size:21px}#upload-symbol .lesson-icon{width:32px;height:32px}.upload-heading-row>strong{font-size:22px}.upload-heading-row>div{flex-basis:calc(100% - 50px)}}

/* MakeCode category colors verified against the editor; Level Up uses its own controls. */
.ui-reference{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;margin:3px 2px;max-width:100%;line-height:1.45;white-space:normal}.mc-sprites{--mc-color:#4b7bec}.mc-controller{--mc-color:#d54322}.mc-scene{--mc-color:#4b6584}.mc-category{background:var(--mc-color);color:white;padding:4px 12px;font:600 18px/1.4 'Segoe UI',Arial,sans-serif}.mc-category svg{width:26px;height:24px;flex-shrink:0}.mc-save{background:#5145a5;color:white;padding:8px;border-radius:3px}.mc-save .lesson-icon{width:22px;height:22px}.mc-start{display:inline-block;background:#20bf6b;color:#fff;padding:8px 12px 10px;border-radius:4px;font:600 16px/1.5 'Segoe UI',Arial,sans-serif}.mc-start small{font-size:12px}.mc-start-slot{display:block;background:#f0f0df;height:12px;margin:5px -12px 0 3px;min-width:95px;border-radius:0 0 0 5px}.mc-new{display:inline-block;background:#f8f8f8;color:#333;border:1px solid #aaa;padding:10px 14px;font:600 16px/1.5 'Segoe UI',Arial,sans-serif}.mc-new small{font-size:12px}.mc-home{background:#087a84;color:#fff;padding:6px 10px;font:600 15px/1.5 'Segoe UI',Arial,sans-serif}.mc-home svg{width:25px;height:25px}.mc-import{background:#eee;color:#333;border:1px solid #bbb;border-radius:3px;padding:6px 10px;font:600 14px/1.5 'Segoe UI',Arial,sans-serif}.ui-reference.lu-button{min-height:36px;padding:6px 12px;font-size:14px;cursor:default;box-shadow:2px 2px 0 #283c24}.ui-reference.lu-nav{background:#bedd99;color:#23351d;border:1px solid #90a47a;padding:8px 12px;font:700 14px/1.5 'Trebuchet MS',sans-serif;text-decoration:none}.file-picker-ref{padding:8px 10px;border:1px solid #698458;background:#e4eacf;color:#273b25;font-size:14px}.block-recipe>.mc-block{display:block;position:relative;border:1px solid #0003;border-radius:4px;padding:12px 14px;background:var(--mc-color);color:#fff;font:600 15px/2.1 'Segoe UI',Arial,sans-serif;letter-spacing:0;margin:3px 0}.mc-block::before{content:'';position:absolute;top:-4px;left:18px;width:22px;height:5px;background:var(--mc-color);border-radius:3px 3px 0 0}.mc-field{display:inline-block;padding:0 6px;border-radius:3px;background:#0003;line-height:1.8;margin:0 2px}.mc-color-swatch{display:inline-block;background:#f3bd42;color:#67451a;border:2px solid #fff;padding:0 8px;line-height:1.4}.stack-arrow{display:none}.concept-option:has(input:disabled){cursor:default}
@media(max-width:760px){.wide-arrow{display:none}.stack-arrow{display:inline}.locker-demo .network-arrows{min-height:112px}.mc-category{font-size:16px}}
@media(prefers-reduced-motion:reduce){.parcel-token{transition:none}}
