* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  text-align: center;
  padding: 2rem;
  max-width: 720px;
  width: 100%;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ff6b6b, #ffa94d, #ffd43b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.canvas-wrapper {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.5rem;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000;
}

.controls {
  margin-bottom: 1rem;
}

button {
  background: linear-gradient(135deg, #6c63ff, #a463ff);
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.5);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.metadata {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

#dimensions {
  display: block;
  margin-bottom: 0.5rem;
}

.color-palette {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a2e;
  padding: 4px 12px 4px 4px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: monospace;
}

.color-swatch .swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }
  h1 {
    font-size: 1.3rem;
  }
  button {
    padding: 12px 30px;
    font-size: 1rem;
  }
}
