@import url('/sdk/0.66.11/src/browser/mobile-frame.css');
:root{color-scheme:light;--paper:#f3efe5;--ink:#193d37;--dim:#55706a;--green:#205b49;--mint:#c9e8d5;--line:#d7dace;--orange:#e8ae70;--blue:#425d94}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,.button{min-height:46px;border:1px solid var(--line);border-radius:12px;padding:9px 17px;background:#fffdf6;color:var(--ink);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}button:hover,.button:hover{border-color:var(--green);background:#e7efdf}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#164434;color:white}button:disabled{opacity:.5;cursor:default}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b2651c;outline-offset:3px}.skip{position:absolute;top:-80px;left:12px;background:white;padding:12px;z-index:50}.skip:focus{top:8px}.site-head{display:flex;align-items:center;gap:24px;padding:21px 4vw;border-bottom:1px solid var(--line);background:var(--paper)}.brand{font-size:25px;font-weight:850;letter-spacing:-1px;text-decoration:none;white-space:nowrap}.brand span{font-size:16px;font-weight:450;letter-spacing:0}.site-head nav{display:flex;gap:8px;flex:1;flex-wrap:wrap}.site-head nav a{padding:8px 10px;text-decoration:none;font-size:14px;border-radius:9px}.site-head nav a[aria-current=page]{background:var(--mint)}.studio{font-size:14px;white-space:nowrap}main{max-width:1480px;margin:auto;padding:36px 5vw 70px;min-height:75vh}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.13;letter-spacing:-.04em}h1{font-size:clamp(38px,5.2vw,76px);max-width:850px;font-weight:700}h2{font-size:30px}h3{font-size:22px;letter-spacing:-.025em}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:var(--dim)}.lede{max-width:760px;font-size:19px;line-height:1.65;color:var(--dim)}.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center;padding:24px 0 36px}.hero h1{margin:16px 0 22px}.hero-art{width:100%;max-height:400px}.hero-art .orbit{transform-origin:250px 210px;animation:turn 30s linear infinite}.hero-art .orbit.slow{animation-duration:45s;animation-direction:reverse}@keyframes turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.hero-art .orbit{animation:none}}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.ribbon{display:flex;gap:28px;padding:20px 0;margin-bottom:32px;border-block:1px solid var(--line);flex-wrap:wrap;color:var(--dim);font-size:14px}.ribbon strong{color:var(--ink);font-size:22px;font-weight:650;margin-right:5px}.section-title{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:40px 0 18px}.section-title h2{margin:0}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:17px}.card{display:flex;flex-direction:column;border:1px solid var(--line);padding:24px;border-radius:22px;background:#fbf9f2;min-width:0;text-align:left;text-decoration:none;align-items:stretch;justify-content:flex-start}.card:hover{background:#eaf0e2;border-color:#9dbbaa}.card h3{margin:13px 0}.card p{font-size:14px;color:var(--dim);margin-bottom:12px}.card .card-foot{margin-top:auto;font-size:12px;font-weight:700}.card-icon{display:flex;width:48px;height:48px;border-radius:15px;background:var(--mint);align-items:center;justify-content:center;font:25px ui-monospace,monospace;color:var(--green)}.filters{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:24px 0}.filters input[type=search]{min-width:210px;flex:1}.filters input[type=search],select{border:1px solid #b6c6ba;background:#fffdf6;padding:12px;border-radius:10px;max-width:100%}.check-label{display:flex;align-items:center;gap:10px;font-size:14px;min-height:46px}.check-label input{width:20px;height:20px}.count{color:var(--dim);font-size:14px}.tag{font-size:11px;border:1px solid #c4d0c5;border-radius:20px;padding:3px 8px;display:inline-block;width:fit-content}.path-section{margin-top:45px;scroll-margin-top:25px}.note-box{padding:20px;border-radius:16px;background:#e5ebdb;border:1px solid #cdd8c6;margin:20px 0}.note-box p:last-child{margin-bottom:0}.number{font:15px ui-monospace,monospace;color:var(--dim)}footer{border-top:1px solid var(--line);padding:24px 5vw;display:flex;gap:30px;flex-wrap:wrap;font-size:13px;color:var(--dim)}#storage-status{margin:0;padding:10px 5vw;background:#f4d7ad}dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:0;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#1a2d3dcc}.workshop-head{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:20px;padding:12px 25px}.workshop-head>div{flex:1;min-width:0}.workshop-head h1{font-size:26px;margin:2px 0;line-height:1.15}.workshop-head .eyebrow{font-size:10px}.workshop-head button{flex-shrink:0}#workshop-body{height:calc(100dvh - 88px);overflow:auto}.work-grid{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(350px,1.35fr) minmax(260px,.9fr);min-height:100%}.guide-pane,.code-pane,.stage-pane{padding:24px;min-width:0}.guide-pane{border-right:1px solid var(--line);overflow-wrap:anywhere}.guide-pane p,.guide-pane li{font-size:14px}.guide-pane h2{font-size:24px}.guide-pane h3{font-size:17px;margin-top:24px}.guide-pane details{border-block:1px solid var(--line);padding:13px 0;margin:18px 0}.guide-pane summary{font-weight:650;cursor:pointer;min-height:30px}.guide-pane ol{padding-left:24px}.guide-pane li{margin:10px 0}.stage-pane{background:#e7eddf;display:flex;flex-direction:column}.stage-box{background:#12202f;border-radius:18px;overflow:hidden;min-height:180px;display:flex;align-items:center;justify-content:center}.stage-box canvas{width:auto;max-width:100%;height:auto;max-height:55vh;object-fit:contain;touch-action:none}.stage-box canvas[hidden]{display:none}.stage-pane pre{font:13px/1.5 ui-monospace,monospace;background:#f8faf2;white-space:pre-wrap;overflow-wrap:anywhere;padding:14px;border-radius:10px;max-height:230px;overflow:auto}.status{font-size:13px;color:var(--dim);margin:10px 0;min-height:22px}.code-pane{display:flex;flex-direction:column;gap:12px}.code-pane label{font-size:13px;font-weight:650}.source{width:100%;min-height:350px;flex:1;resize:vertical;padding:16px;border:1px solid #9dafa0;border-radius:13px;background:#fbfbf6;color:#243b3a;font:13px/1.65 ui-monospace,SFMono-Regular,monospace;tab-size:2;white-space:pre;overflow:auto}.source[readonly]{background:#f0f0e7}.reflection label{display:block;margin:12px 0 5px;font-size:12px;font-weight:650}.reflection textarea{width:100%;min-height:85px;border:1px solid #bec8b8;border-radius:10px;padding:10px;background:#fffdf8;font-size:14px;resize:vertical}.tiny{font-size:12px;color:var(--dim)}code{font-family:ui-monospace,monospace;font-size:.88em;overflow-wrap:anywhere}pre{white-space:pre-wrap;overflow-wrap:anywhere}.result-pass{border-left:4px solid #327355}.result-fail{border-left:4px solid #b17b38}.project-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(400px,1.5fr);min-height:100%}.project-layout .stage-pane{min-height:100%}.bank-list{font-size:12px;padding-left:20px}.anchors{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.anchor{background:#f8faf2;border:1px solid var(--line);padding:15px;border-radius:13px}.anchor pre{font-size:11px;max-height:180px;overflow:auto}.anchor a{font-size:12px}.language-frame{width:100%;height:320px;border:1px solid #bcc9b5;border-radius:14px;background:white}.language-canvas{width:100%;height:auto;background:#142538;border-radius:14px}.language-grid{grid-template-columns:minmax(250px,.85fr) minmax(300px,1.2fr) minmax(290px,1fr)}.language-choices{display:grid;gap:9px;margin-top:20px}.language-choices button{text-align:left;justify-content:flex-start;font-size:13px}.language-choices button[aria-pressed=true]{background:var(--mint);border-color:var(--green)}.source-links{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;margin:18px 0}.app-guide{max-width:1100px;margin:auto;padding:30px}.app-topic{border-top:1px solid var(--line);padding:23px 0}.app-topic h3{font-size:20px}.app-topic p{max-width:850px}.mentor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}.mentor-grid article{border:1px solid var(--line);border-radius:22px;padding:25px}.empty{padding:40px;border:1px dashed #97ae9c;border-radius:18px}.mobile-game-controls{position:relative!important}.workshop-tabs{display:none}.storage-note{font-size:12px;color:var(--dim)}
@media(min-width:1100px){.work-grid>.guide-pane,.work-grid>.code-pane,.work-grid>.stage-pane{max-height:calc(100dvh - 88px);overflow:auto}.code-pane .source{min-height:200px}}
@media(max-width:1099px){.site-head{gap:15px;flex-wrap:wrap}.site-head nav{order:3;flex-basis:100%;gap:3px}.studio{margin-left:auto}.work-grid,.language-grid{grid-template-columns:1fr 1fr}.guide-pane{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line)}.guide-pane .reflection{display:grid;grid-template-columns:1fr 1fr;gap:8px}.guide-pane .reflection label{grid-column:auto}.hero{grid-template-columns:1.2fr .8fr}.project-layout{grid-template-columns:1fr 1.2fr}.project-layout .guide-pane{grid-column:auto}}
@media(max-width:650px){.site-head{padding:15px 20px;gap:10px}.site-head nav{overflow:auto;flex-wrap:nowrap}.site-head nav a{white-space:nowrap}.brand{font-size:23px}main{padding:24px 20px 50px}.hero{grid-template-columns:1fr;gap:0;padding-top:0}.hero-art{max-height:240px;order:2}.hero h1{font-size:43px;margin-top:12px}.lede{font-size:16px}.ribbon{gap:12px 20px}.ribbon strong{font-size:19px}.grid{grid-template-columns:1fr}.card{padding:20px}.section-title{align-items:flex-start;flex-direction:column;gap:6px}.filters{align-items:stretch}.filters select{flex:1}.workshop-head{height:90px;padding:10px 12px;gap:10px}.workshop-head button{padding:8px;font-size:12px;min-height:44px}.workshop-head h1{font-size:19px}.workshop-head .eyebrow{font-size:9px}#workshop-body{height:calc(100dvh - 90px)}.work-grid,.language-grid,.project-layout{display:flex;flex-direction:column}.guide-pane,.stage-pane,.code-pane{padding:20px}.stage-pane{order:1}.guide-pane{order:2}.code-pane{order:3}.source{min-height:420px;font-size:13px}.stage-box canvas{max-height:45vh}.guide-pane .reflection{display:block}.language-frame{height:300px}.app-guide{padding:20px}.stage-pane .actions>*{flex:1 1 130px}.anchors{grid-template-columns:1fr}.mentor-grid{grid-template-columns:1fr}footer{padding:20px}.workshop-head #fullscreen{font-size:0}.workshop-head #fullscreen::before{content:'⤢';font-size:24px}}
@media(max-height:500px) and (min-width:651px){.workshop-head{height:65px}#workshop-body{height:calc(100dvh - 65px)}.stage-box canvas{max-height:65vh}}

#run-output:empty{display:none}.workshop-head .eyebrow{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.journey-stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:28px 0}.journey-stage{background:var(--paper,#fcfaf0);border:1px solid #b7c4b5;border-radius:20px;padding:clamp(20px,3vw,32px);min-width:0}.journey-stage h2{font-size:clamp(23px,3vw,32px)}.journey-stage h3{margin-bottom:6px}.journey-stage textarea{display:block;width:100%;min-height:140px;resize:vertical;margin:10px 0 14px}.journey-stage details{margin:20px 0}.journey-stage summary{min-height:44px;cursor:pointer;padding:10px 0}.journey-stage .check-label{min-height:48px}.journey-stage p{line-height:1.65}@media(max-width:760px){.journey-stages{grid-template-columns:1fr;gap:16px}}

.journey-cover{width:100%;max-height:360px;object-fit:cover;border-radius:18px;margin:8px 0 24px}

.experiment-lesson {
  --green: var(--academy-accent);
  --ink: var(--academy-ink);
  --line: var(--academy-border);
  padding: 16px;
}
.experiment-lesson .guide-pane {
  grid-column: auto;
  border: 1px solid var(--academy-border);
}
.experiment-lesson .academy-lesson-workspace > section {
  padding: 14px;
}
.experiment-lesson .source {
  height: clamp(14rem, 45dvh, 28rem);
  min-height: 14rem;
}
.experiment-output {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  background: var(--academy-subtle);
}
.experiment-output .stage-pane {
  order: 0;
  padding: 0;
  border-inline-start: 0;
}
.experiment-output #run-status {
  margin: 6px 0 0;
}
.experiment-output .stage-box canvas {
  max-height: 42dvh;
}
.experiment-output .actions {
  gap: 6px;
  margin: 0;
}
.experiment-output :is(.actions button, .actions .button, #check-program) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
}
.experiment-playback {
  justify-content: space-between;
  margin: 0;
  border: 1px solid var(--academy-border);
  border-radius: var(--academy-radius);
  background: var(--academy-panel);
}
.experiment-editor-help {
  font-size: .875rem;
}
.experiment-lesson .academy-lesson-switch button[aria-pressed="true"] {
  color: var(--academy-on-accent);
  background: var(--academy-accent);
}
.experiment-output :is(#check-result, #run-output) {
  margin: 0;
  padding: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: var(--academy-radius);
  background: var(--academy-panel);
}

@media (min-width: 760px) {
  .experiment-lesson {
    height: 100%;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }
  .experiment-lesson .guide-pane,
  .experiment-output {
    min-height: 0;
    overflow: auto;
  }
  .experiment-lesson .academy-lesson-work,
  .experiment-lesson .academy-lesson-workspace {
    height: 100%;
    min-height: 0;
  }
  .experiment-lesson .academy-lesson-workspace {
    grid-template-rows: minmax(0, 1fr);
  }
  .experiment-lesson .source {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
    resize: none;
  }
  .experiment-output {
    border-inline-start: 1px solid var(--academy-border);
  }
  .experiment-output .stage-box canvas {
    max-height: clamp(6rem, calc(100dvh - 28rem), 42dvh);
  }
  .experiment-lesson #jump-source { display: none; }
}

.project-lesson {
  --green: var(--academy-accent);
  --ink: var(--academy-ink);
  --line: var(--academy-border);
  padding: 16px;
}
.project-lesson .academy-lesson-workspace > section { padding: 14px; }
.project-lesson .academy-lesson-run .actions { margin: 0; }
.project-lesson .academy-lesson-run .tiny { flex-basis: 100%; margin: 0; }
.project-lesson .anchor pre { overflow: auto; }
.project-status { margin-top: 8px; overflow-wrap: anywhere; }
.project-status #run-status { margin: 0; }

.journey-stages .journey-stage {
  color: var(--academy-ink);
  background: var(--academy-panel);
  border-color: var(--academy-border);
  border-radius: var(--academy-radius);
}
.journey-stages .primary {
  color: var(--academy-on-accent);
  background: var(--academy-accent);
}
