.designer-hero {
  padding: clamp(3rem, 7vw, 6rem) 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.85), transparent 20%),
    radial-gradient(circle at 86% 14%, rgba(255,225,77,.38), transparent 18%),
    linear-gradient(135deg, #fff0f8 0%, #efe4ff 46%, #ddf8ff 100%);
}

.designer-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  color: var(--purple-deep);
  line-height: .98;
  margin-bottom: 1rem;
}

.designer-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-mid);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  font-weight: 650;
}

.designer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.designer-stage,
.designer-controls {
  background: white;
  border: 2px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.designer-stage {
  padding: clamp(1rem, 3vw, 2rem);
  position: sticky;
  top: 1rem;
}

.canvas-wrap {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(45deg, #fff7fc 25%, transparent 25%),
    linear-gradient(-45deg, #fff7fc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff7fc 75%),
    linear-gradient(-45deg, transparent 75%, #fff7fc 75%),
    #ffffff;
  background-size: 30px 30px;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0;
  border: 2px solid #f5d8ea;
}

#slime-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.stage-tip {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 700;
}

.designer-controls {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.control-section + .control-section {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 2px solid #f3edf7;
}

.control-title {
  font-family: var(--font-display);
  color: var(--purple-deep);
  font-size: 1.05rem;
  margin-bottom: .8rem;
}

.designer-field {
  display: grid;
  gap: .42rem;
  margin-bottom: .9rem;
}

.designer-field label {
  color: var(--text-dark);
  font-weight: 800;
  font-size: .88rem;
}

.designer-field input,
.designer-field select,
.designer-field textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: .78rem .9rem;
  background: #fff;
  color: var(--text-dark);
  font: inherit;
}

.designer-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.palette {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.color-swatch {
  width: 42px;
  height: 42px;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(74,21,128,.17), 0 5px 12px rgba(45,27,78,.12);
  cursor: pointer;
  transition: transform .16s ease;
}

.color-swatch:hover,
.color-swatch:focus-visible,
.color-swatch.active {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 0 0 3px var(--purple), 0 7px 16px rgba(45,27,78,.18);
}

.tool-row {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.tool-row input[type="color"] {
  width: 52px;
  height: 42px;
  padding: 3px;
  border-radius: 12px;
}

.tool-row input[type="range"] {
  flex: 1;
  min-width: 130px;
}

.mini-button,
.charm-button {
  border: 2px solid var(--border);
  background: white;
  color: var(--purple-deep);
  border-radius: 999px;
  padding: .66rem .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.mini-button:hover,
.charm-button:hover {
  transform: translateY(-2px);
  background: var(--pink-pale);
}

.charm-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem;
}

.charm-button {
  padding: .62rem .3rem;
  font-size: 1.35rem;
}

.designer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 1.3rem;
}

.designer-actions .btn-primary,
.designer-actions .btn-secondary {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.designer-actions .submit-design {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ff6b8a, #9333ea);
}

.privacy-note {
  margin-top: 1rem;
  border: 2px solid #f1bd42;
  background: #fff8db;
  border-radius: 16px;
  padding: .9rem 1rem;
  color: #5d4700;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.5;
}

.consent-row {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin-top: .9rem;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--text-mid);
  font-weight: 650;
}

.consent-row input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.review-section {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  background: linear-gradient(135deg, #fff9d6, #fff0f8);
}

.review-grid {
  max-width: 1060px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.review-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 22px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.review-card .icon { font-size: 2.25rem; }
.review-card h3 {
  font-family: var(--font-display);
  color: var(--purple-deep);
  margin: .55rem 0;
}
.review-card p {
  color: var(--text-mid);
  line-height: 1.55;
  font-size: .9rem;
  font-weight: 600;
}

.designer-status {
  min-height: 1.5rem;
  margin-top: .7rem;
  text-align: center;
  color: var(--purple-deep);
  font-weight: 800;
}

@media (max-width: 900px) {
  .designer-shell { grid-template-columns: 1fr; }
  .designer-stage { position: static; }
}

@media (max-width: 560px) {
  .designer-shell { padding: 1rem; }
  .designer-stage, .designer-controls { border-radius: 20px; }
  .charm-grid { grid-template-columns: repeat(3, 1fr); }
  .designer-actions { grid-template-columns: 1fr; }
  .designer-actions .submit-design { grid-column: auto; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .color-swatch,
  .mini-button,
  .charm-button { transition: none; }
}
