:root {
  --bg: #160f24;
  --bg-soft: #211431;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #fff9ff;
  --muted: #cfc3d9;
  --accent: #ef7da9;
  --accent-2: #9c7ff0;
  --ok: #77d6aa;
  --warning: #ffd17a;
  --danger: #ff9a9a;
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 125, 169, 0.24), transparent 33%),
    radial-gradient(circle at 88% 20%, rgba(156, 127, 240, 0.2), transparent 30%),
    linear-gradient(145deg, #120b1d 0%, #1c102a 55%, #130d20 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath d='M25 10c-3-6-13-5-13 3 0 8 13 15 13 15s13-7 13-15c0-8-10-9-13-3z' fill='none' stroke='%23ffffff' stroke-opacity='.12'/%3E%3C/svg%3E");
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 38px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 32px rgba(239, 125, 169, .3);
  font-size: 22px;
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); background: rgba(255,255,255,.05); font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
  padding: 34px 0 28px;
}

.eyebrow { color: #ffb2cf; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(44px, 8vw, 82px); line-height: .98; margin-bottom: 24px; }
h2 { font-size: clamp(28px, 5vw, 46px); margin-bottom: 14px; }
h3 { font-size: 21px; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); line-height: 1.6; max-width: 680px; }

.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
  backdrop-filter: blur(20px);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.card.soft { box-shadow: none; background: rgba(255,255,255,.055); }

.form-stack { display: grid; gap: 17px; }
label { font-weight: 700; display: block; }
input[type="text"] {
  width: 100%; margin-top: 8px; padding: 15px 16px;
  border-radius: 14px; border: 1px solid var(--border);
  color: var(--text); background: rgba(0,0,0,.18); outline: none;
}
input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(239,125,169,.14); }
.checkbox-line { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: 14px; line-height: 1.45; }
.checkbox-line input { margin-top: 3px; accent-color: var(--accent); }

.btn {
  border: 0; border-radius: 14px; padding: 14px 18px;
  font-weight: 800; color: #160f24;
  background: linear-gradient(135deg, #ff9dc1, #b59cff);
  box-shadow: 0 12px 30px rgba(239, 125, 169, .22);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.btn.secondary { color: var(--text); background: rgba(255,255,255,.1); border: 1px solid var(--border); box-shadow: none; }
.btn.small { padding: 10px 13px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.feature { padding: 20px; }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature p, .muted { color: var(--muted); line-height: 1.55; }

.notice, .error, .success {
  padding: 14px 16px; border-radius: 14px; line-height: 1.5; font-size: 14px;
}
.notice { background: rgba(255,209,122,.1); border: 1px solid rgba(255,209,122,.28); color: #ffe7b2; }
.error { background: rgba(255,125,125,.1); border: 1px solid rgba(255,125,125,.32); color: #ffd1d1; }
.success { background: rgba(119,214,170,.1); border: 1px solid rgba(119,214,170,.3); color: #caffdf; }
.hidden { display: none !important; }

.page-head { margin: 22px 0 26px; }
.progress-wrap { margin: 18px 0; }
.progress-track { height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.09); }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 8px; }

.kink-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.kink-option { position: relative; }
.kink-option input { position: absolute; opacity: 0; pointer-events: none; }
.kink-option label {
  height: 100%; min-height: 92px; padding: 17px;
  border: 1px solid var(--border); border-radius: 18px;
  background: rgba(255,255,255,.055); display: flex; gap: 12px; align-items: center;
  transition: .18s ease; cursor: pointer;
}
.kink-option label:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }
.kink-option input:checked + label { border-color: #f498ba; background: rgba(239,125,169,.16); box-shadow: inset 0 0 0 1px rgba(239,125,169,.25); }
.kink-icon { font-size: 25px; }
.kink-name { line-height: 1.25; }

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.person-status { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.055); border: 1px solid var(--border); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--warning); }
.dot.done { background: var(--ok); }

.category-section { margin-top: 22px; }
.category-header {
  position: sticky; top: 10px; z-index: 4;
  display: flex; align-items: center; gap: 11px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--border); background: rgba(31,19,47,.94); backdrop-filter: blur(14px);
}
.question-list { display: grid; gap: 12px; margin-top: 12px; }
.question-card { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.045); }
.question-number { color: #f7abc7; font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.question-text { font-size: 17px; line-height: 1.48; margin: 7px 0 14px; }
.answer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.answer-grid input { position: absolute; opacity: 0; pointer-events: none; }
.answer-grid label {
  text-align: center; padding: 11px 8px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,.045); font-size: 13px; line-height: 1.25; cursor: pointer;
}
.answer-grid input:checked + label { background: rgba(156,127,240,.22); border-color: #b69ff9; }
.question-card.unanswered { border-color: var(--danger); }

.sticky-actions {
  position: sticky; bottom: 12px; z-index: 6; margin-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px; border-radius: 18px; border: 1px solid var(--border); background: rgba(24,14,37,.94); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.link-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
.link-box input { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.result-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.stat { text-align: center; padding: 20px 12px; border-radius: 18px; background: rgba(255,255,255,.055); border: 1px solid var(--border); }
.stat strong { display: block; font-size: 30px; margin-bottom: 5px; }
.result-card { padding: 18px; border-radius: 17px; border: 1px solid var(--border); background: rgba(255,255,255,.05); margin-bottom: 10px; }
.result-card p { margin: 8px 0 0; line-height: 1.5; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag { padding: 8px 11px; border-radius: 999px; background: rgba(239,125,169,.12); border: 1px solid rgba(239,125,169,.24); color: #ffd5e5; font-size: 13px; }

.footer { margin-top: 50px; color: #a99bb5; font-size: 13px; line-height: 1.55; text-align: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .features, .kink-grid { grid-template-columns: repeat(2, 1fr); }
  .answer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 14px; }
  .topbar { margin-bottom: 20px; }
  .pill.desktop { display: none; }
  .card { padding: 19px; border-radius: 21px; }
  .features, .kink-grid, .status-grid, .result-summary { grid-template-columns: 1fr; }
  .kink-option label { min-height: 72px; }
  .sticky-actions { align-items: stretch; flex-direction: column; }
  .sticky-actions .btn { width: 100%; }
  .link-box { grid-template-columns: 1fr; }
}
