/* ===== タートルグラフィックス 見た目 ===== */

.tg-main {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tg-canvas-wrap {
  background: #fff;
  padding: 14px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

#tg-canvas {
  border-radius: 10px;
  display: block;
}

.tg-panel {
  width: 340px;
}

/* Scratch風のくりかえしブロック */
.tg-block-outer {
  background: #ffab19;
  border-radius: 12px;
  padding: 10px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 14px;
}

.tg-block-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.tg-block-body {
  background: #4c97ff;
  border-radius: 10px;
  padding: 10px;
  margin-left: 14px;
}

.tg-block-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 4px;
  font-size: 1rem;
}

.tg-value {
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 2px 10px;
  min-width: 2.2em;
  text-align: center;
  font-size: 1.1rem;
}

.tg-step {
  font-family: inherit;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.tg-step:active {
  transform: scale(0.92);
}

#tg-len {
  width: 110px;
}
