/* Theme Variables */
:root {
  --bg: #0e1116;
  --card: #171a22;
  --muted: #a8b3cf;
  --text: #e6e9f2;
  --accent: #20e3b2;
  --accent-2: #2ce4f5;
  --border: #232735;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 18px;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #1a1f2b 0, transparent 40%), var(--bg);
  line-height: 1.5;
}

/* Header Branding */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 800;
  letter-spacing: .3px;
}
.brand .emoji {
  font-size: 22px;
}

/* Card Overrides */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Canvas Preview */
#pfpCanvas {
  width: 100%;
  height: auto;
  display: block;
  background: #0b0e13;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: grab;
}
#pfpCanvas:active {
  cursor: grabbing;
}

/* Labels + Hints */
.form-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.form-text {
  font-size: 12px;
  color: var(--muted);
}

/* Reset Button Override (Danger style) */
#resetBtn {
  background-color: #dc2626 !important;
  border: 1px solid #b91c1c !important;
  color: #fff !important;
}
#resetBtn:hover {
  background-color: #b91c1c !important;
  border-color: #991b1b !important;
}

/* Segmented Control */
.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.seg-btn {
  padding: 10px 14px;
  background: #121722;
  border: 0;
  color: #b6c1de;
  font-weight: 600;
  cursor: pointer;
}
.seg-btn + .seg-btn {
  border-left: 1px solid var(--border);
}
.seg-btn.active {
  background: #1e2536;
  color: #e8edfb;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* Swatches */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.swatch {
  width: 34px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.swatch:focus {
  outline: 2px solid #3e4c70;
}
