.coloring-shell { padding: 28px 0 60px; }

.coloring-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  padding: 22px;
}

.coloring-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.coloring-tools {
  margin-bottom: 16px;
}

.mode-row,
.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mode-row { margin-bottom: 12px; }

.mode-row .btn.active {
  background: linear-gradient(135deg, var(--mint), var(--sky));
  color: #fff;
  border-color: transparent;
}

.swatch-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(26, 43, 74, 0.12);
  cursor: pointer;
  transition: transform .12s ease;
}

.swatch-btn:hover,
.swatch-btn.active {
  transform: scale(1.08);
  outline: 3px solid var(--ink);
}

.coloring-board {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #fffdf8;
  border: 3px dashed rgba(61, 184, 255, 0.35);
  min-height: min(72vw, 420px);
  max-width: 520px;
  margin: 0 auto;
}

#coloring-svg-wrap,
.coloring-svg {
  width: 100%;
  height: auto;
  display: block;
}

#draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
}

.coloring-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: 4rem;
  border-radius: 14px;
  margin-bottom: 12px;
  background: linear-gradient(160deg, #fff8e8, #e8f9ff);
  border: 1.5px solid rgba(26, 43, 74, 0.2);
  box-shadow: 0 6px 14px rgba(26, 43, 74, 0.08);
}

.coloring-card-link .card { min-height: 100%; }

.coloring-tip {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  margin: 14px 0 0;
}

@media (max-width: 760px) {
  .coloring-board { min-height: 68vw; }
  .swatch-btn { width: 38px; height: 38px; }
}
