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

html, body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1d1d1f;
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0 0 40vh 0;
  background: linear-gradient(180deg, #ff6b9d 0%, #ff8e53 30%, #f7b733 55%, #fcd05c 75%, #ffd6a5 100%);
  z-index: -2;
}

.ocean {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background: linear-gradient(180deg, #4facfe 0%, #1976d2 60%, #0d47a1 100%);
  z-index: -2;
}

.palm {
  position: fixed;
  font-size: 200px;
  bottom: 20vh;
  z-index: -1;
  opacity: 0.4;
  user-select: none;
  pointer-events: none;
}
.palm-left { left: -40px; transform: rotate(-15deg); }
.palm-right { right: -40px; transform: rotate(15deg); }

.card {
  max-width: 680px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}

header {
  text-align: center;
  margin-bottom: 28px;
}
h1 {
  font-size: 2.2rem;
  background: linear-gradient(90deg, #ff6b9d, #ff8e53, #f7b733);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tagline {
  margin-top: 8px;
  color: #555;
  font-size: 1rem;
}
.tagline em { color: #ff6b9d; font-style: italic; font-weight: 600; }

.slider-section {
  margin-bottom: 28px;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #666;
  margin-bottom: 10px;
  text-align: center;
}
.slider-labels span {
  flex: 1;
  transition: all 0.2s;
  cursor: pointer;
}
.slider-labels span.active {
  color: #ff6b9d;
  font-weight: 700;
  transform: scale(1.1);
}

#slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4a90e2 0%, #50c878 25%, #f7b733 50%, #ff8e53 75%, #ff6b9d 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
#slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff6b9d;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
#slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
#slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff6b9d;
  cursor: pointer;
}

.slider-value {
  text-align: center;
  margin-top: 12px;
  color: #555;
  font-size: 0.95rem;
}
.slider-value strong { color: #ff6b9d; }

.inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.inputs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #444;
  font-weight: 600;
}
.inputs input[type="text"] {
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.inputs input[type="text"]:focus {
  outline: none;
  border-color: #ff8e53;
}
.toggle {
  flex-direction: row !important;
  align-items: center;
  gap: 10px !important;
  cursor: pointer;
}
.toggle input { width: 18px; height: 18px; cursor: pointer; }

.generate-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff6b9d, #ff8e53, #f7b733);
  background-size: 200% auto;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}
.generate-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}
.generate-btn:active { transform: translateY(0); }
.generate-btn:disabled { opacity: 0.6; cursor: wait; }

.output-section {
  margin-top: 28px;
  background: #fafafa;
  border-radius: 12px;
  padding: 20px;
  border: 2px dashed #ff8e53;
}
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.output-header h2 { font-size: 1.1rem; color: #ff6b9d; }
.copy-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: #1976d2;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover { background: #0d47a1; }
.copy-btn.copied { background: #50c878; }

#output {
  white-space: pre-wrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #222;
  word-wrap: break-word;
}

footer {
  margin-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

@media (max-width: 600px) {
  .card { margin: 20px 16px; padding: 24px 20px; }
  h1 { font-size: 1.6rem; }
  .palm { font-size: 120px; }
  .slider-labels { font-size: 0.6rem; }
}
