.tutorial-page_viewport__7aWb8 {
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 32px;
  background: #fff;
  color: #202124;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}

.tutorial-page_content__YcRIS {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: 48px;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.tutorial-page_content__YcRIS h1,
.tutorial-page_content__YcRIS h2,
.tutorial-page_content__YcRIS h3 {
  color: #17191a;
  line-height: 1.4;
}

.tutorial-page_content__YcRIS h1 {
  margin: 0 0 24px;
  font-size: 30px;
}

.tutorial-page_content__YcRIS h2 {
  margin: 48px 0 20px;
  padding-top: 24px;
  border-top: 2px solid #e4e9e9;
  font-size: 22px;
}

.tutorial-page_content__YcRIS h3 {
  margin: 32px 0 16px;
  font-size: 18px;
}

.tutorial-page_content__YcRIS p {
  margin: 0 0 20px;
}

.tutorial-page_content__YcRIS ul,
.tutorial-page_content__YcRIS ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

.tutorial-page_content__YcRIS li {
  margin: 10px 0;
  padding-left: 4px;
}

.tutorial-page_content__YcRIS li > p {
  margin-bottom: 8px;
}

.tutorial-page_content__YcRIS a {
  color: #00666b;
  text-underline-offset: 4px;
}

.tutorial-page_content__YcRIS a:focus-visible,
.tutorial-page_codeToolbar__K9by9 button:focus-visible,
.tutorial-page_codeBlock__yEnd2 pre:focus-visible {
  outline: 3px solid #008a91;
  outline-offset: 4px;
}

.tutorial-page_content__YcRIS :not(pre) > code {
  padding: 3px 5px;
  border: 1px solid #dce6e6;
  border-radius: 3px;
  background: #f1f6f6;
  font-size: 0.9em;
}

.tutorial-page_content__YcRIS blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #00868c;
  background: #eff7f7;
}

.tutorial-page_content__YcRIS blockquote p:last-child {
  margin-bottom: 0;
}

.tutorial-page_codeBlock__yEnd2 {
  margin: 24px 0;
  overflow: hidden;
  border: 2px solid #434949;
  border-radius: 4px;
  background: #222;
}

.tutorial-page_codeToolbar__K9by9 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #434949;
  color: #d1dfdf;
  font-size: 11px;
  line-height: 1.5;
}

.tutorial-page_codeToolbar__K9by9 button {
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 12px;
  border: 2px solid #006666;
  background: #00aaaa;
  color: #fff;
  box-shadow: 2px 2px 0 #004444;
  font-size: 12px;
  cursor: pointer;
}

.tutorial-page_codeToolbar__K9by9 button:hover {
  background: #008f95;
}

.tutorial-page_codeToolbar__K9by9 button:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.tutorial-page_codeBlock__yEnd2 pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  color: #b7f7b0;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre;
  overflow-wrap: normal;
  -moz-tab-size: 2;
       tab-size: 2;
}

.tutorial-page_codeBlock__yEnd2 code {
  font: inherit;
}

.tutorial-page_screenshotLink__B8agz {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 32px auto 20px;
}

.tutorial-page_screenshotLink__B8agz img {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
  border: 1px solid #cad4d4;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgb(0 0 0 / 8%);
}

.tutorial-page_content__YcRIS p:has(.tutorial-page_screenshotLink__B8agz) + p:has(> em:only-child) {
  margin-top: -8px;
  margin-bottom: 28px;
  color: #505b5c;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .tutorial-page_viewport__7aWb8 {
    padding: 20px 16px;
  }

  .tutorial-page_content__YcRIS h1 {
    font-size: 26px;
  }

  .tutorial-page_content__YcRIS h2 {
    font-size: 20px;
  }

  .tutorial-page_codeBlock__yEnd2 pre {
    padding: 16px;
  }
}

.bank-editor_editor__J1AJd {
  --teal: #00aaaa;
  --teal-dark: #006666;
  container-type: inline-size;
  position: relative;
  width: 100%;
  height: calc(100% - 20px);
  min-height: 480px;
  color: #202020;
  font-size: 12px;
  line-height: 1.45;
}

.bank-editor_editor__J1AJd *,
.bank-editor_editor__J1AJd *::before,
.bank-editor_editor__J1AJd *::after {
  box-sizing: border-box;
}

.bank-editor_surface__YpR4P {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.bank-editor_toolbar__0x4I1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid #888;
}

.bank-editor_editor__J1AJd .action-button {
  min-height: 32px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
}

.bank-editor_editor__J1AJd .action-button:disabled {
  background: #bcbcbc;
  border-color: #888;
  color: #555;
  box-shadow: 2px 2px 0 #999;
  text-shadow: none;
  cursor: default;
  transform: none;
}

.bank-editor_editor__J1AJd button:focus-visible,
.bank-editor_editor__J1AJd input:focus-visible,
.bank-editor_canvasViewport__5SXnh:focus-visible {
  outline: 2px solid #003c98;
  outline-offset: 2px;
}

.bank-editor_bankCount__CmPkY {
  margin-left: auto;
  color: #444;
  padding: 2px;
}

.bank-editor_fileInput__ZjPQ_ {
  display: none;
}

.bank-editor_feedback__g9Xtu {
  flex: none;
  min-height: 34px;
  padding: 8px 2px;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: #285454;
}

.bank-editor_error__MtIlk {
  color: #8b0000;
}

.bank-editor_layout____Nuf {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  grid-gap: 12px;
  gap: 12px;
  flex: 1 1;
  min-height: 0;
}

.bank-editor_panel__x8s8m {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #d6d6d6;
  border: 1px solid #888;
  box-shadow:
    inset 1px 1px #fff,
    1px 1px #777;
}

.bank-editor_panelHeader__16rY4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #999;
  background: #c9c9c9;
}

.bank-editor_panelHeader__16rY4 h2,
.bank-editor_pickerHeader__mbeoB h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.bank-editor_panelHeader__16rY4 > span {
  font-size: 10px;
  color: #444;
}

.bank-editor_panelBody__hk6ex {
  padding: 12px;
  flex: 1 1;
  min-height: 0;
  overflow: auto;
}

.bank-editor_panelBody__hk6ex,
.bank-editor_canvasViewport__5SXnh,
.bank-editor_picker__vCnka {
  scrollbar-width: auto;
  scrollbar-color: #888 #ccc;
}

.bank-editor_editor__J1AJd .bank-editor_panelBody__hk6ex::-webkit-scrollbar,
.bank-editor_editor__J1AJd .bank-editor_canvasViewport__5SXnh::-webkit-scrollbar,
.bank-editor_editor__J1AJd .bank-editor_picker__vCnka::-webkit-scrollbar {
  display: block;
  width: 12px;
  height: 12px;
}

.bank-editor_editor__J1AJd .bank-editor_panelBody__hk6ex::-webkit-scrollbar-track,
.bank-editor_editor__J1AJd .bank-editor_canvasViewport__5SXnh::-webkit-scrollbar-track,
.bank-editor_editor__J1AJd .bank-editor_picker__vCnka::-webkit-scrollbar-track {
  background: #ccc;
}

.bank-editor_editor__J1AJd .bank-editor_panelBody__hk6ex::-webkit-scrollbar-thumb,
.bank-editor_editor__J1AJd .bank-editor_canvasViewport__5SXnh::-webkit-scrollbar-thumb,
.bank-editor_editor__J1AJd .bank-editor_picker__vCnka::-webkit-scrollbar-thumb {
  background: #999;
  border: 2px solid #ccc;
}

.bank-editor_currentColor__JTk4H {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bank-editor_colorSample__30Fvb,
.bank-editor_swatch__B7Uzb {
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid #666;
  flex-shrink: 0;
}

.bank-editor_colorValue__JowhH {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}

.bank-editor_paletteGrid__wEVnV {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  grid-gap: 2px 8px;
  gap: 2px 8px;
  margin-bottom: 10px;
}

.bank-editor_swatchButton__B4XTJ {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.bank-editor_swatchIndex__vYpH7 {
  font-size: 10px;
  line-height: 1.2;
}

.bank-editor_editor__J1AJd .bank-editor_selected__tMZ6y {
  border-color: var(--teal-dark);
  background-color: #e0f7f7;
  box-shadow: 0 0 0 1px var(--teal);
}

.bank-editor_editor__J1AJd .bank-editor_swatchButton__B4XTJ.bank-editor_selected__tMZ6y {
  outline: 2px solid var(--teal-dark);
  outline-offset: 1px;
  box-shadow: none;
}

.bank-editor_swatchButton__B4XTJ:hover,
.bank-editor_thumbnail__WUbbj:hover {
  background-color: #e0eeee;
}
.bank-editor_swatchButton__B4XTJ:disabled,
.bank-editor_thumbnail__WUbbj:disabled {
  cursor: default;
}

.bank-editor_transparentMark___bbmf {
  display: inline-block;
  margin: 6px;
  background: #eee;
  color: #333;
  font-size: 11px;
  line-height: 16px;
  width: 16px;
}

.bank-editor_checkerboard___0Wiv {
  background-color: #eee;
  background-image: conic-gradient(#bbb 25%, #eee 0 50%, #bbb 0 75%, #eee 0);
  background-size: 12px 12px;
}

.bank-editor_hint__bpL8t {
  margin: 8px 0 0;
  color: #444;
  font-size: 10px;
  line-height: 1.4;
}

.bank-editor_dimensions__DhcgU {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
}

.bank-editor_field__X_pzO {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.bank-editor_field__X_pzO label {
  font-size: 11px;
}
.bank-editor_field__X_pzO input {
  width: 86px;
  height: 30px;
  border: 2px solid #888;
  border-bottom-color: #fff;
  border-right-color: #fff;
  border-radius: 0;
  background: #fff;
  color: #202020;
  font-size: 12px;
  padding: 4px;
}

.bank-editor_field__X_pzO input:disabled {
  background: #ccc;
}

.bank-editor_canvasViewport__5SXnh {
  flex: 1 1;
  min-height: 180px;
  min-width: 0;
  margin: 0 12px;
  padding: 12px;
  overflow: auto;
  background: #a8a8a8;
  border: 2px solid #888;
  border-bottom-color: #eee;
  border-right-color: #eee;
}

.bank-editor_pixelGrid__0R2k0 {
  display: grid;
  grid-auto-rows: 20px;
  grid-gap: 1px;
  gap: 1px;
  width: max-content;
  margin: 0 auto;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.bank-editor_pixel__nAQBL {
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  cursor: crosshair;
}
.bank-editor_pixel__nAQBL:hover {
  outline: 1px solid #fff;
  outline-offset: -2px;
}
.bank-editor_canvasFooter__yhSVY {
  padding: 10px 12px;
  font-size: 10px;
  color: #444;
}

.bank-editor_emptyState__VLhdv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  height: 100%;
  padding: 12px;
  text-align: center;
  color: #333;
}

.bank-editor_emptyState__VLhdv p {
  max-width: 320px;
  line-height: 1.7;
}
.bank-editor_spriteActions__ZqoJT,
.bank-editor_dangerActions__p9Vqe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}
.bank-editor_spriteActions__ZqoJT .action-button,
.bank-editor_dangerActions__p9Vqe .action-button {
  width: 100%;
}
.bank-editor_dangerActions__p9Vqe {
  border-top: 1px solid #aaa;
}
.bank-editor_dangerActions__p9Vqe .action-button {
  background: #c9c9c9;
  color: #782d2d;
  border-color: #888;
  box-shadow: 2px 2px #777;
  text-shadow: none;
}

.bank-editor_spriteList__sxS7b {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  align-content: start;
  grid-gap: 8px;
  gap: 8px;
}

.bank-editor_spriteList__sxS7b > .bank-editor_hint__bpL8t {
  grid-column: 1 / -1;
  margin: 0;
}
.bank-editor_thumbnail__WUbbj {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  background: #eee;
  color: #202020;
  border: 2px solid #aaa;
  cursor: pointer;
  text-align: left;
}

.bank-editor_previewStage__uyFyS {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  width: 100%;
}
.bank-editor_thumbnailPixels___O_ya {
  display: grid;
  flex: none;
}
.bank-editor_thumbnailPixels___O_ya > span {
  min-width: 0;
  min-height: 0;
}
.bank-editor_thumbnailName__J113i,
.bank-editor_thumbnailSize__HH7zY {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.bank-editor_thumbnailSize__HH7zY {
  color: #555;
}

.bank-editor_pickerOverlay__S22_j {
  position: absolute;
  inset: 0;
  bottom: auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
  background: rgba(70, 70, 70, 0.45);
}

.bank-editor_picker__vCnka {
  width: 280px;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 12px;
  background: #d6d6d6;
  border: 2px solid #fff;
  border-right-color: #555;
  border-bottom-color: #555;
  box-shadow: 3px 3px #444;
}

.bank-editor_pickerHeader__mbeoB {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.bank-editor_pickerHeader__mbeoB .action-button {
  min-width: 70px;
  margin-left: auto;
}

.bank-editor_picker__vCnka input {
  font-family: monospace;
}

@container (max-width: 999px) {
  .bank-editor_surface__YpR4P {
    height: auto;
    padding-bottom: 20px;
  }
  .bank-editor_layout____Nuf {
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: 540px auto;
  }
  .bank-editor_canvasViewport__5SXnh {
    max-height: 400px;
  }
  .bank-editor_spritesPanel__HEAvU {
    grid-column: 1 / -1;
  }
  .bank-editor_spritesPanel__HEAvU .bank-editor_panelHeader__16rY4 {
    padding: 6px 12px;
  }
  .bank-editor_spriteActions__ZqoJT,
  .bank-editor_dangerActions__p9Vqe {
    padding: 8px 12px;
  }
  .bank-editor_spriteActions__ZqoJT .action-button,
  .bank-editor_dangerActions__p9Vqe .action-button {
    width: auto;
  }
  .bank-editor_spriteList__sxS7b {
    max-height: 160px;
    flex: none;
    padding: 8px 12px;
  }
}

@container (max-width: 639px) {
  .bank-editor_surface__YpR4P {
    height: auto;
    padding-bottom: 20px;
  }
  .bank-editor_layout____Nuf {
    display: flex;
    flex-direction: column;
  }
  .bank-editor_paletteBody__psd_J {
    overflow: visible;
  }
  .bank-editor_canvasViewport__5SXnh {
    height: 360px;
    flex: none;
  }
  .bank-editor_bankCount__CmPkY {
    margin-left: 0;
  }
  .bank-editor_spriteList__sxS7b {
    max-height: 240px;
  }
}

.cina-ide_programScreen__1Iov7 {
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: -moz-fit-content;
  max-height: fit-content;
  align-items: center;
  margin-bottom: 100px;
}

.cina-ide_programStage__Rh1aM iframe {
  margin-top: 10px;
}

.cina-ide_fullscreen__jiF_y {
  position: fixed;
  inset: 0;
  z-index: 6;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  align-items: stretch;
  background: #d6d6d6;
  color: black;
}

/* Keep the fixed panel above sibling windows when the Popover API is unavailable. */
[data-workbench-window]:has(.cina-ide_fullscreen__jiF_y) {
  z-index: 2147483647 !important;
}

.cina-ide_fullscreenBar__pphN6 {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #c0c0c0;
  border-bottom: 2px solid black;
}

.cina-ide_exitFullscreen__FNRtv {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: #c0c0c0;
  border: 2px solid black;
  cursor: pointer;
}

.cina-ide_fullscreen__jiF_y .cina-ide_programStage__Rh1aM {
  position: relative;
  flex: 1 1;
  min-height: 0;
  overflow: hidden;
}

.cina-ide_fullscreen__jiF_y .cina-ide_programStage__Rh1aM > #game-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  transform: translate(-50%, -50%) scale(var(--program-scale, 1));
}

.cina-ide_fullscreen__jiF_y .cina-ide_programStage__Rh1aM iframe {
  margin-top: 0;
}

