/* MotionGIF — GIF to Sprite Sheet page styles.
   Loaded after site.css; uses the same design tokens. All classes are
   prefixed mgs- so nothing collides with the shared stylesheet. */

.mgs-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 18px;
  text-align: center;
  margin-top: 20px;
}
.mgs-dropzone.mgs-over { border-color: var(--accent); background: var(--accent-soft); }
.mgs-dropzone p { margin: 6px auto; color: var(--muted); }
.mgs-dropzone .mgs-big { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 auto; }
.mgs-file-input { display: none; }

.mgs-facts {
  background: var(--accent-soft);
  border: 1px solid #c3d3e6;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 15px;
}
.mgs-facts p { margin: 4px 0; }
.mgs-facts .mgs-fname { font-weight: 700; word-break: break-all; }

.mgs-num {
  width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-family: inherit;
}
.mgs-select {
  width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-family: inherit;
}

.mgs-readout {
  border-radius: var(--radius); padding: 12px 16px; margin: 16px 0 0;
  font-size: 15px; border: 1px solid var(--border); background: var(--surface);
}
.mgs-readout p { margin: 4px 0; }
.mgs-readout .mgs-headline { font-weight: 700; font-size: 16px; }
.mgs-note-ok { border-color: #a7f3d0; background: #ecfdf5; }
.mgs-note-warn { border-color: #fde68a; background: #fffbeb; }

.mgs-stage { align-items: center; }
canvas.mgs-pixelated { image-rendering: pixelated; }

.mgs-anim-stage { min-height: 96px; align-items: center; }
.mgs-downloads { display: grid; gap: 10px; margin-top: 16px; }
.mgs-downloads .mg-btn { width: 100%; }
