:root {
  --bg: #0f172a;
  --card: rgba(255,255,255,0.05);
  --accent: #6366f1;
  --text: #f1f5f9;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #0f172a, #1e293b);
  color: var(--text);
}

.app {
  max-width: 600px;
  margin: auto;
  padding: 16px;
  padding-bottom: 100px;
}

header {
  text-align: center;
  margin-bottom: 16px;
}

.preview {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 20px;
  min-height: 250px;
  aspect-ratio: 1/ 1;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.slider {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  padding: 12px;
  border-radius: var(--radius);
}

.slider img {
  width: 22px;
  height: 22px;
  opacity: 0.8;
}

input[type="range"] {
  flex: 1;
  appearance: none;
  height: 6px;
  background: #334155;
  border-radius: 5px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(99,102,241,0.6);
}

.select-wrap {
  background: var(--card);
  padding: 12px;
  border-radius: var(--radius);
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: #1e293b;
  color: white;
  font-size: 1rem;
}

.generate {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 568px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: var(--accent);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(99,102,241,0.4);
}

#genart_web {
    width: 100%;
    max-width: 100%
    overflow: hidden;
    display: flex;
    justify-content: center;
}
#genart_web canvas {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  display: block;
}
