:root {
  --bg: #fdf2f5;
  --bg-2: #fbe4ea;
  --ink: #3a2a30;
  --ink-dim: #8a747c;
  --accent: #c2185b;
  --accent-2: #f2a5c1;
  --border: rgba(194, 24, 91, 0.15);
  --serif: 'Fraunces', serif;
  --sans: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 60px 24px 100px; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px; text-align: center;
}

/* ---------- Intro ---------- */

.intro { text-align: center; padding: 40px 0; }
.cover-photo {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  border: 5px solid #fff; box-shadow: 0 14px 34px -10px rgba(194, 24, 91, 0.5);
  margin: 0 auto 28px; display: block;
}
.q-photo {
  width: 100%; border-radius: 14px; margin-bottom: 18px; object-fit: cover; max-height: 340px;
}

/* ---------- Warning screen ---------- */
.warning { text-align: center; padding: 70px 0 40px; }
.warn-icon { font-size: 44px; margin-bottom: 18px; }
.warning h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 6vw, 36px); color: var(--ink); margin: 0 0 18px; text-wrap: balance; }

/* ---------- Profile card ---------- */
.profile-card {
  background: #fff; border-radius: 22px; overflow: hidden; margin: 20px 0;
  box-shadow: 0 20px 50px -20px rgba(58, 42, 48, 0.3);
  display: flex; flex-direction: column;
}
.profile-photo { width: 100%; height: auto; max-height: 480px; object-fit: contain; background: #1a1013; display: block; }
.profile-text { padding: 30px 28px 34px; text-align: center; }
.profile-text .eyebrow { text-align: center; }
.profile-text h2 { font-family: var(--serif); font-size: 26px; color: var(--ink); margin: 0 0 14px; }
.profile-bio { font-size: 15.5px; color: var(--ink-dim); line-height: 1.6; margin: 0 0 26px; }
.intro h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 6vw, 42px);
  color: var(--ink); margin: 0 0 20px; text-wrap: balance;
}
.sub { font-size: 16px; color: var(--ink-dim); max-width: 44ch; margin: 0 auto 36px; }

.btn-start, .btn-submit {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 16px 34px; font-family: var(--sans); font-weight: 800; font-size: 16px;
  cursor: pointer; box-shadow: 0 12px 30px -10px rgba(194, 24, 91, 0.5);
  transition: transform 0.15s ease;
}
.btn-start:hover, .btn-submit:hover { transform: translateY(-2px); }
.btn-submit { width: 100%; margin-top: 16px; }

/* ---------- Quiz ---------- */

.q-block {
  background: #fff; border-radius: 18px; padding: 26px 24px; margin-bottom: 18px;
  box-shadow: 0 6px 24px -12px rgba(58, 42, 48, 0.15);
}
.q-cat { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); margin: 0 0 8px; text-transform: uppercase; }
.q-text { font-family: var(--serif); font-size: 19px; color: var(--ink); margin: 0 0 22px; font-weight: 500; text-wrap: balance; }

.slider-row { display: flex; align-items: center; gap: 14px; }
input[type="range"] {
  flex: 1; -webkit-appearance: none; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--border));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(194, 24, 91, 0.4);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: 0 3px 10px rgba(194, 24, 91, 0.4); cursor: pointer;
}
.slider-val {
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--accent);
  min-width: 52px; text-align: center;
}

textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px;
  font-family: var(--sans); font-size: 15px; color: var(--ink); resize: vertical;
  background: #fffafb;
}
textarea:focus { outline: none; border-color: var(--accent); }

/* ---------- Result ---------- */

.result { text-align: center; padding: 60px 0; }
.result h2 { font-family: var(--serif); font-size: 28px; color: var(--ink); margin: 0 0 16px; }
.result-text { font-size: 18px; color: var(--ink); margin: 0 0 10px; }
.wink { font-size: 22px; }
.result-note { font-size: 13.5px; color: var(--ink-dim); font-style: italic; }

/* ---------- Phases ---------- */
.phase-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.phase-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background 0.2s; }
.phase-dot.active { background: var(--accent); }
.phase-dot.done { background: var(--accent-2); }
.phase-title { text-align: center; font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 0 0 6px; }
.phase-sub { text-align: center; font-size: 14px; color: var(--ink-dim); margin: 0 0 28px; }

/* ---------- Choice questions ---------- */
.choice-options { display: flex; flex-direction: column; gap: 10px; }
.choice-opt {
  display: block; padding: 13px 18px; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: var(--sans); font-size: 15px; color: var(--ink); cursor: pointer; background: #fffafb;
  transition: border-color 0.15s, background 0.15s;
}
.choice-opt input { display: none; }
.choice-opt.selected { border-color: var(--accent); background: #fdeaf1; font-weight: 700; color: var(--accent); }

.btn-next { background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 15px 32px; font-family: var(--sans); font-weight: 800; font-size: 15px; cursor: pointer; width: 100%; margin-top: 8px; }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; }
