/* アトリエ（ぬりえ・迷路） */
.st-pick {
  padding: 40px 0 60px;
}
.st-pick h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 6px 0;
}
.st-q {
  display: block;
  width: min(520px, 100%);
  margin: 0 auto 18px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: inherit;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
}
.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.st-it {
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.35;
}
.st-it span {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #222 center/cover no-repeat;
  border: 3px solid var(--gold2);
  margin-bottom: 4px;
  transition: transform 0.2s;
}
.st-it:hover span {
  transform: scale(1.04) rotate(-1deg);
}
.st-app {
  padding: 20px 0 50px;
}
.st-top {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.st-top h1 {
  font-size: clamp(18px, 2.6vw, 26px);
  margin: 0;
}
.st-top .en {
  color: var(--gold-ink);
  font-size: 0.85em;
}
.st-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .st-body {
    grid-template-columns: 1fr;
  }
}
.st-canvas {
  position: relative;
  border: 6px solid #c9a24a;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  background: #fff;
  line-height: 0;
  touch-action: none;
  cursor: crosshair;
}
.st-canvas canvas,
.st-canvas img {
  width: 100%;
  height: auto;
  display: block;
}
.st-canvas .c-line,
.st-canvas .c-orig {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.st-canvas .c-orig {
  opacity: 0.85;
}
.st-tools {
  display: grid;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.st-row {
  display: grid;
  gap: 6px;
}
.st-row .lab {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.st-row .seg {
  flex-wrap: wrap;
}
.st-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.st-pal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sw {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--c);
  padding: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.sw.on {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  transform: scale(1.12);
}
.st-note {
  font-size: 12px;
  margin: 0;
}
/* 迷路 */
.mz-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.mz-goal {
  text-align: center;
  line-height: 1.3;
}
.mz-goal b {
  display: block;
  font-family: var(--en);
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--navy);
}
.mz-goal small {
  font-size: 12.5px;
  color: var(--muted);
}
.mz-wrap {
  text-align: center;
}
.mz-cv {
  max-width: 100%;
  border: 6px solid #c9a24a;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  touch-action: none;
  background: #fff;
}
.mz-win img {
  border: 6px solid #c9a24a;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(230, 192, 105, 0.7);
}
.mz-pad {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  grid-template-rows: 60px 60px;
  gap: 6px;
  justify-content: center;
  margin: 14px auto 6px;
}
.mz-pad button {
  border: 2px solid var(--gold);
  background: var(--card);
  border-radius: 14px;
  font-size: 22px;
  touch-action: manipulation;
}
.mz-pad [data-d='up'] {
  grid-column: 2;
}
.mz-pad [data-d='left'] {
  grid-column: 1;
  grid-row: 2;
}
.mz-pad [data-d='down'] {
  grid-column: 2;
  grid-row: 2;
}
.mz-pad [data-d='right'] {
  grid-column: 3;
  grid-row: 2;
}
@media (min-width: 900px) {
  .mz-pad {
    display: none;
  }
}
