/* ==========================================================================
   SPIN & SPIRAL ART
   ========================================================================== */
.art-wrap {
  position: relative;          /* anchors the title splash */
  max-width: 820px;
  margin: 1.5rem auto;
  text-align: center;
}

/* mode toggle */
.mode-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.mode-btn {
  padding: 8px 18px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
}
.mode-btn.active {
  background: #000;
  color: #fff;
}

/* studio = palette | window | palette */
.studio {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

/* the window: a big light-blue area (drawn in canvas) with a grey border.
   The B5 paper sits smaller inside it, so you're zoomed out from the paper. */
#art-canvas {
  width: min(64vh, 560px);
  height: auto;
  background: #bfe3f5;
  border: 6px solid #888;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

/* colour rails — 24 swatches each side, 2 columns */
.palette {
  display: grid;
  grid-template-columns: repeat(2, 22px);
  grid-auto-rows: 22px;
  gap: 3px;
}
.swatch {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 0;
}
.swatch.selected {
  outline: 3px solid #000;
  outline-offset: -1px;
}

/* toolbar (speed + actions) */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.tool {
  padding: 8px 14px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
}
.tool.active { background: #000; color: #fff; }
.tool.stop { font-weight: bold; }

/* mode-specific controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}
.controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
}
.hint { font-size: 0.8em; color: #555; }
.credit { margin-top: 16px; font-size: 0.8em; color: #555; }

/* ==========================================================================
   Title splash — white page, black centered text, Go! button
   ========================================================================== */
.splash {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.splash[hidden] { display: none; }
.splash-title {
  margin: 0 0 1.2rem;
  color: #000;
  font-size: 3rem;
}
.go-btn {
  padding: 12px 34px;
  font-size: 1.2rem;
  border: 2px solid #000;
  background: #fff;
  cursor: pointer;
}
.go-btn:hover { background: #000; color: #fff; }
