:root {
  --ink: #1a1210;
  --muted: #6b5c54;
  --line: #e5d8cc;
  --paper: #e5dbd0;
  --card: #fff;
  --title: #3f020a;
  --btn: #5c121f;
  --accent: #5c121f;
  --accent-soft: #f3e6e2;
  --score: #fffdf9;
  --result: #f5eee6;
}

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

html, body {
  height: auto;
  min-height: 0;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 64px;
}

.proto-tag {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 2, 10, 0.08);
  color: var(--title);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 8px 0 8px;
}
.quiz-lead em { color: var(--title); font-style: italic; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin: 18px 0;
  box-shadow: 0 8px 28px rgba(42, 24, 20, 0.06);
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
  color: var(--title);
  margin: 8px 0 16px;
}

.small { color: var(--muted); font-size: 14px; line-height: 1.55; }

.quiz-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 5.5rem;
}
.quiz-block__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--title);
  margin: 0 0 10px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.grid.one { grid-template-columns: 1fr; }

.option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf7f4;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.option__label { font-weight: 600; }
.option__meta {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.quiz-actions-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 18px -22px -22px;
  padding: 14px 22px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

button,
.cta {
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: var(--btn);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
button:disabled {
  background: #c4b9ba;
  cursor: default;
}
.btn-secondary {
  background: #fff;
  color: var(--title);
  border: 1px solid rgba(63, 2, 10, 0.18);
  box-shadow: 0 4px 14px rgba(42, 24, 20, 0.06);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
  color: var(--title);
  border-color: rgba(63, 2, 10, 0.35);
  background: var(--accent-soft);
}

.preview-card { background: transparent; border: 0; box-shadow: none; padding: 0; }

.result-card {
  background: var(--result);
  border-radius: 20px;
  padding: 28px 22px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 32px rgba(42, 24, 20, 0.08);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.brand-logo {
  display: block;
  width: 148px;
  height: auto;
}

.sky-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  color: var(--title);
  letter-spacing: -0.015em;
}

.flower-line {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.nails-band { width: 100%; margin-top: 20px; }
.nails-site-mark {
  margin: 0 0 10px;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--title, #3f020a);
}
.nails-placeholder {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  min-height: 140px;
  padding: 18px 8px 10px;
  background: linear-gradient(180deg, #faf6f1 0%, #efe6db 100%);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(63, 2, 10, 0.06);
}
.nails-placeholder.has-photo {
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(63, 2, 10, 0.06);
  min-height: 0;
  width: 100%;
  aspect-ratio: auto;
  overflow: visible;
}
.nails-photo {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
  border-radius: 14px;
}
.nail {
  width: 36px;
  border-radius: 18px 18px 10px 10px;
  box-shadow:
    0 6px 14px rgba(42, 24, 20, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
}
.nail::after {
  content: "";
  position: absolute;
  inset: 10% 18% auto;
  height: 28%;
  border-radius: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), transparent);
  pointer-events: none;
}
.nail.is-accent {
  outline: 2px solid rgba(63, 2, 10, 0.35);
  outline-offset: 2px;
}
.nail:nth-child(1) { height: 78px; }
.nail:nth-child(2) { height: 92px; }
.nail:nth-child(3) { height: 100px; }
.nail:nth-child(4) { height: 90px; }
.nail:nth-child(5) { height: 72px; }
.nails-placeholder.is-long .nail:nth-child(1) { height: 96px; }
.nails-placeholder.is-long .nail:nth-child(2) { height: 118px; }
.nails-placeholder.is-long .nail:nth-child(3) { height: 130px; }
.nails-placeholder.is-long .nail:nth-child(4) { height: 114px; }
.nails-placeholder.is-long .nail:nth-child(5) { height: 90px; }
.nails-placeholder.is-short .nail:nth-child(1) { height: 58px; }
.nails-placeholder.is-short .nail:nth-child(2) { height: 68px; }
.nails-placeholder.is-short .nail:nth-child(3) { height: 74px; }
.nails-placeholder.is-short .nail:nth-child(4) { height: 66px; }
.nails-placeholder.is-short .nail:nth-child(5) { height: 54px; }

.score {
  width: 100%;
  margin-top: 18px;
  background: var(--score);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(63, 2, 10, 0.06),
    0 10px 28px rgba(42, 24, 20, 0.08);
  padding: 20px 16px 16px;
  text-align: center;
}
.inspire {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.inspire-name {
  display: block;
  margin-top: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.3;
  color: var(--title);
}
.inspire-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(63, 2, 10, 0.1);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
  height: 52px;
}
.quiz-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 22px auto 4px;
  max-width: 432px;
  width: 100%;
}
.quiz-actions .btn-secondary {
  min-width: min(100%, 260px);
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  border-radius: 14px;
}

@media (max-width: 650px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .quiz-actions-bar { margin: 18px -16px -16px; padding: 14px 16px 16px; }
  .title { font-size: 26px; }
}

@media (min-width: 920px) {
  main { max-width: 960px; }
  .result-card {
    max-width: 864px;
    margin: 0 auto;
    border-radius: 28px;
    padding: 56px 56px 68px;
  }
  .brand-logo { width: 180px; }
  .title { font-size: 52px; }
  .inspire { font-size: 18px; }
  .inspire-name { font-size: 26px; margin-top: 12px; }
  .cta { margin-top: 28px; height: 72px; font-size: 26px; }
  .quiz-actions { max-width: 864px; margin-top: 32px; }
  .quiz-actions .btn-secondary {
    min-width: 280px;
    height: 56px;
    padding: 0 36px;
    font-size: 18px;
  }
}

/* === manicure-ux-high-v1 === */
.nails-band {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.nails-placeholder.has-photo {
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(63, 2, 10, 0.06);
  min-height: 0;
  width: 100%;
  aspect-ratio: auto;
  overflow: visible;
}
.nails-photo {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
  border-radius: 14px;
}
.nails-band > img,
#nails-img {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  height: auto;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
  border-radius: 14px;
}
.result-card .title,
.result-card h1.title,
.result-card h2.title {
  font-size: 24px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
  max-width: 28ch;
}
.sky-label {
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.04em !important;
  line-height: 1.4;
}
.score {
  max-width: 420px;
}
.inspire-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--title, #3f020a);
}
.inspire-name {
  display: block !important;
  margin: 0 !important;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 1.45 !important;
  color: var(--ink, #1a1210) !important;
}
.wear-note,
#wear-note,
.score > .small {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(63, 2, 10, 0.1);
  font-size: 13px !important;
  line-height: 1.45;
  color: var(--muted, #6b5c54);
}
.option {
  position: relative;
  min-height: 56px !important;
  padding: 14px 44px 14px 16px !important;
  border-width: 2px !important;
}
.option.is-selected,
.option:has(input:checked) {
  border-color: var(--accent, #5c121f) !important;
  background: #f8ece8 !important;
  box-shadow: 0 0 0 1px rgba(92, 18, 31, 0.18);
}
.option.is-selected::after,
.option:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent, #5c121f);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2l2.8 2.8 6.2-6.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.result-ready-teaser {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft, #f3e6e2);
  color: var(--title, #3f020a);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.quiz-actions-bar.is-ready #submit,
.quiz-actions-bar.is-ready button#submit {
  box-shadow: 0 6px 18px rgba(92, 18, 31, 0.22);
}
button,
.cta {
  font-size: 16px !important;
  min-height: 52px;
}
@media (max-width: 650px) {
  .result-card .title,
  .result-card h1.title,
  .result-card h2.title {
    font-size: 22px !important;
  }
  .nails-band { max-width: 100%; }
  .nails-photo {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
  border-radius: 14px;
}
@media (min-width: 920px) {
  .result-card {
    max-width: 560px !important;
    margin-left: auto;
    margin-right: auto;
    padding: 36px 32px 40px !important;
  }
  .result-card .title,
  .result-card h1.title,
  .result-card h2.title {
    font-size: 24px !important;
  }
  .inspire-name { font-size: 15px !important; }
  .cta {
    margin-top: 20px !important;
    height: 52px !important;
    font-size: 16px !important;
  }
}
