.guide-header-label {
  font-size: 15px;
  font-weight: 700;
}
.guide-page .guide {
  margin-top: 44px;
}
.guide-page .guide-intro {
  text-align: center;
  margin-bottom: 36px;
}
.guide-page .guide-intro > p {
  max-width: 640px;
  margin: 20px auto;
  font-size: 18px;
}
.block-stack {
  width: fit-content;
  margin: 0 auto 30px;
  text-align: left;
  transform: rotate(-4deg);
  padding: 5px 12px;
}
.coding-block {
  display: block;
  position: relative;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid #0002;
  box-shadow: 0 3px 0 #0002;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.coding-block::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -7px;
  width: 28px;
  height: 8px;
  background: inherit;
  border-radius: 0 0 5px 5px;
  z-index: 1;
}
.event-block {
  background: #ffbf00;
  color: #553b00;
  border-radius: 22px 22px 8px 8px;
}
.green-flag {
  color: #176d3e;
  font-size: 23px;
  vertical-align: middle;
}
.motion-block { background: #3979d6; }
.looks-block { background: #8550c9; }
.guide-page .guide-step {
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 5px 0 #e9e0f6;
  padding: 32px;
  margin: 24px 0;
}
.guide-page .step-label {
  display: inline-block;
  background: #eee5ff;
  color: #6740b3;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.guide-page .guide-step:nth-of-type(2) .step-label,
.guide-page .guide-step:nth-of-type(5) .step-label {
  background: #fff0ce;
  color: #855100;
}
.guide-page .guide-step:nth-of-type(3) .step-label {
  background: #e7f1ff;
  color: #235da6;
}
.guide-page .guide-step:nth-of-type(4) .step-label {
  background: #e2f5ed;
  color: #226444;
}
.guide-page .guide h2 { font-size: 26px; }
.guide-page .guide p,
.guide-page .guide li { color: #625b75; }
.guide-page .kit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.guide-page .kit li {
  background: #f6f2fc;
  border: 1px solid #e1d8ef;
  font-size: 14px;
  padding: 12px;
  border-radius: 12px;
}
.guide-page .kit li::before {
  content: "✓";
  color: #6740b3;
  font-weight: 800;
  margin-right: 8px;
}
.guide-page .guide ol li { padding-left: 5px; }
.guide-page .guide ol li + li { margin-top: 18px; }
.guide-page .guide ol li::marker { color: #6740b3; font-weight: 800; }
.guide-page .button-link {
  background: #855cd6;
  color: #fff;
  border: 2px solid #7448c4;
  border-radius: 12px;
  box-shadow: 0 3px 0 #633eaa;
  padding: 14px 20px;
  font-size: 16px;
}
.guide-page .button-link:hover { background: #7448c4; }
.guide-page .note {
  background: #fff7e5;
  border-color: #f4b632;
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
}
.guide-page .demo-pane { border-color: #e1d8ef; background: #faf8ff; }
.guide-page .demo-tab { background: #eee5ff; color: #593797; }
.guide-page .demo-pane:first-child .demo-tab { border-top-color: #855cd6; }
.guide-page .demo-pane:last-child .demo-tab {
  background: #e7f1ff;
  color: #235da6;
  border-top-color: #4c97ff;
}
.guide-page .project-card {
  background: #edf7ff;
  border: 2px solid #cfe7fb;
  border-radius: 18px;
}
.guide-page .project-card:nth-child(2) { background: #f3edff; border-color: #e2d5f8; }
.guide-page .project-card:hover { border-color: #855cd6; }
.guide-page .project-card .project-emoji {
  font-size: 42px;
  margin: 0 0 12px;
  line-height: 1.2;
}
.guide-page summary { color: #6740b3; line-height: 1.6; }
.guide-page .guide-end {
  background: #fff0ce;
  border: 2px solid #f4dc9e;
  padding: 28px;
  border-radius: 24px;
  margin-top: 32px;
}
.finish-star { display: block; font-size: 44px; margin-bottom: 12px; }
@media (max-width: 600px) {
  .guide-header-label { max-width: 120px; text-align: right; font-size: 12px; }
  .guide-page .guide-step { padding: 24px 20px; }
  .guide-page .guide h2 { font-size: 23px; }
  .guide-page .guide-intro > p { font-size: 16px; }
  .guide-page .kit { grid-template-columns: 1fr; }
  .guide-page .step-label { font-size: 10px; letter-spacing: .6px; }
}

.python-preview {
  max-width: 360px;
  margin: 0 auto 30px;
  padding: 22px;
  text-align: left;
  background: #fff;
  border: 2px solid #e1d8ef;
  border-top: 7px solid #855cd6;
  border-radius: 18px;
  box-shadow: 0 5px 0 #e9e0f6;
}
.python-preview-label {
  display: block;
  margin-bottom: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #6740b3;
}
.python-preview code { font-size: clamp(15px, 4vw, 20px); color: #855100; }
.python-preview code span { color: #6740b3; }
.python-output {
  display: block;
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: #e2f5ed;
  color: #226444;
  font-size: 15px;
}
