/* 사랑받는 순서 (loved.html) 전용 스타일 — Codeit 디자인 규칙.
   흰 캔버스를 색 띠로 나누고, 둥근 기하(내용 카드 24px, 누르는 줄 16px, 칩은 알약), 그림자는 거의 없다.
   보라(#9933ff)는 "이걸 누르세요" 한 가지 뜻으로만 쓴다. 다른 보라·분홍은 장식이다.

   이 페이지만 이 결이다. 다른 검사와 톤을 맞추지 않는다 (사이트 안에서 검사마다
   디자인이 다른 건 이미 랜덤 생물·여름 검사에서 하고 있다).
   공용 styles.css 는 안 쓴다. 보기가 넷이라 engine.js 도 안 쓴다. */

*, *::before, *::after { box-sizing: border-box; }
/* .btn 의 display 가 hidden 을 이겨버려서, 숨긴 버튼이 빈 알약으로 남는다 */
[hidden] { display: none !important; }

/* 문항마다 본문 높이가 달라 세로 스크롤바가 있다 없다 하면, 그때마다
   페이지 폭이 스크롤바 두께만큼 왔다갔다 밀린다. 자리를 항상 미리 잡아둔다 */
html { scrollbar-gutter: stable; }

:root {
  /* Codeit 팔레트 */
  --purple: #9933ff;      /* 오직 기본 버튼에만 */
  --purple-press: #8a1ff5;
  --ink: #333236;         /* 순검정 대신 따뜻한 먹색 */
  --ink-60: rgba(51, 50, 54, .6);
  --ink-45: rgba(51, 50, 54, .45);
  --ink-20: rgba(51, 50, 54, .2);
  --ink-10: rgba(51, 50, 54, .1);
  --canvas: #ffffff;
  --surface: #f6f6f8;
  --violet-surface: #f8ecff;
  --violet-tint: #f3e1fd;
  --pink-surface: #ffebf7;
  /* 캐릭터 그림의 배경색. 그림 파일 안의 흰 여백을 이 값으로 맞춰 구웠기 때문에
     같은 값을 여기 두면 그림 네모의 테두리가 안 보인다 (tools 없이 눈으로 못 맞춘다) */
  --art-wash: #faf7fd;

  --shadow-card: rgba(0, 0, 0, .08) 0 2px 14px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  /* Codeit 은 히어로만 Pretendard ExtraBold 고 나머지는 Spoqa 다. Spoqa 는 안정적으로
     받아올 데가 없어서 Pretendard 한 벌로 간다. 무게 대비(800 대 400)로 그 역할을 낸다 */
  font-family: Pretendard, "Pretendard Variable", "Apple SD Gothic Neo", "Noto Sans KR",
    system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%; /* 모바일 글자 자동 확대 방지 */
  text-size-adjust: 100%;
  word-break: keep-all;
}

/* 화면 전체를 세로로 쌓는다. 색 띠가 화면 끝까지 가야 해서, 가로 여백은
   안쪽 .inner 가 맡는다 */
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.inner { width: 100%; max-width: 540px; margin: 0 auto; padding: 0 24px; }

/* Lucide 아이콘. 부모 글자색·크기를 따른다 */
.ico,
.lucide {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.15em;
}
.homelink .lucide,
.moreTests .lucide,
.gback .lucide {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
.gback .lucide { width: 20px; height: 20px; }
.tile .lucide { width: 32px; height: 32px; color: var(--ink); vertical-align: 0; }
.rchip .lucide { width: 14px; height: 14px; vertical-align: -0.12em; }
.btn .lucide { width: 18px; height: 18px; margin-right: 6px; vertical-align: -0.2em; }
.a__pick .lucide { width: 14px; height: 14px; margin-right: 4px; }

.screen { display: none; }
.screen.is-on { display: flex; flex-direction: column; flex: 1; animation: screenIn 260ms cubic-bezier(.2,.6,.25,1); }
@keyframes screenIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .screen.is-on { animation: none; } }

/* ── 공통 부속 ─────────────────────────────────── */

.topnav { padding: 16px 0 8px; }
.homelink {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 6px;
  background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background 140ms cubic-bezier(.25,.1,.25,1), color 140ms cubic-bezier(.25,.1,.25,1);
}
.homelink:hover { background: var(--violet-surface); color: #760dde; }
.homelink:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.adslot {
  margin-top: 32px; padding: 20px; text-align: center;
  background: var(--surface); border-radius: 24px;
}
.adslot__label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--ink-45); }

/* 회색 띠다. margin 으로 띄우면 그 자리에 body 흰색이 드러나서, 연보라 랜딩과
   이 띠 사이에 흰 줄이 하나 낀다. 띄우는 건 위 화면이 자기 padding 으로 하고
   푸터는 바로 붙인다 (아래 #screen-intro / #screen-result 규칙) */
.siteFoot {
  margin-top: 0; padding: 48px 20px 40px;
  background: var(--surface);
  text-align: center; font-size: 13px; line-height: 1.6; color: var(--ink-60);
}
.siteFoot a { color: var(--ink-60); }
.siteFoot .moreTests {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 16px; padding: 10px 24px;
  border-radius: 8px; border: 1px solid var(--ink-20);
  background: var(--canvas); color: var(--ink);
  font-size: 16px; font-weight: 500; text-decoration: none;
}
.siteFoot .moreTests:hover { background: var(--violet-surface); color: #760dde; }
/* 온보딩과 문항을 도는 동안에는 푸터를 내린다. 화면 아래에 다른 데로 새는 링크가
   있으면 한 화면에 한 가지만 말하겠다는 흐름이 깨진다 */
body.is-flow .siteFoot { display: none; }
/* 푸터가 보이는 두 화면만 아래를 띄운다. 온보딩·문항 화면은 아래에 고정 버튼이
   있어서 여기에 여백을 주면 그 버튼이 밀린다 */
#screen-intro.is-on,
#screen-result.is-on { padding-bottom: 48px; }

/* ── 버튼 ──────────────────────────────────────── */

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 56px; padding: 0 32px;
  border: 0; border-radius: 16px;
  background: var(--purple); color: #fff;
  font: inherit; font-size: 18px; font-weight: 800;
  cursor: pointer;
  transition: background 180ms cubic-bezier(.25,.1,.25,1),
              transform 120ms cubic-bezier(.25,.1,.25,1);
}
.btn:hover { background: var(--purple-press); }
.btn:active { transform: scale(.99); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* 윤곽 버튼. 가만히 있을 때는 회색 테두리로 물러나 있고, 손이 닿으면 그때
   보라로 켜진다. 채워진 보라는 여전히 기본 버튼 하나뿐이라 신호가 안 흐려진다 */
.btn--ghost {
  background: var(--canvas); color: var(--ink);
  border: 1px solid var(--ink-20); font-size: 16px; font-weight: 700;
  height: 52px;
  transition: background 140ms cubic-bezier(.25,.1,.25,1),
              border-color 140ms cubic-bezier(.25,.1,.25,1),
              color 140ms cubic-bezier(.25,.1,.25,1),
              transform 120ms cubic-bezier(.25,.1,.25,1);
}
.btn--ghost:hover { background: var(--violet-surface); border-color: var(--purple); color: #760dde; }
.btn--ghost:active { background: var(--violet-tint); }

.btnRow { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 8px; }
.btnRow .btn { width: 100%; min-width: 0; }

/* 화면 아래에 붙는 액션 자리 — 관계 반응 검사(sai)의 .bottom 과 같은 역할 */
.cta {
  position: sticky; bottom: 0; z-index: 5;
  margin-top: auto; padding: 20px 0 max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--canvas) 72%, rgba(255,255,255,0));
}
.cta > .btn + .btn,
.cta > .btn + .btnRow { margin-top: 8px; }

/* 문항 화면: 처음으로/그만두기를 화면 맨 아래 한 줄로 고정 */
#screen-quiz.is-on { min-height: 100dvh; }
#screen-quiz .quizBody { padding-bottom: 120px; }
.cta--flow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 12px 24px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--ink-10);
  z-index: 15;
}
.cta--flow .btnRow { margin: 0; align-items: center; }
.cta--flow .btn {
  height: 52px;
  margin: 0;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 750;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  box-sizing: border-box;
}
.cta--flow .btn .lucide {
  width: 16px;
  height: 16px;
  margin: 0;
  display: block;
  flex: 0 0 16px;
}
.resultCta { position: static; margin-top: 24px; padding: 0 0 24px; background: none; }

/* ── 랜딩 ──────────────────────────────────────── */

/* 랜딩 섹션 id 는 screen-intro 다. 예전 이름(screen-home)으로 적혀 있어서
   이 그라데이션이 아무 데도 안 걸리고 있었다 */
#screen-intro.is-on {
  background: linear-gradient(180deg, #ffffff 0%, #fbf7ff 38%, #f6ecff 100%);
}
/* 첫 화면은 가운데 정렬이다. 그림 · 눈썹 · 제목 · 버튼이 한 줄기로 서야
   내려오는 눈이 버튼에서 멈춘다. 아래 띠부터는 다시 왼쪽 정렬로 돌아간다 */
.hero { padding: 20px 0 36px; text-align: center; }
/* 그림 원본은 q-art/instinct/*.png 이고 화면에 나가는 건 여백을 잘라 구운 *.webp 다.
   원본 그대로면 한 장에 1.3MB 라 첫 화면이 그림 기다리는 화면이 된다 */
.heroArt {
  display: block; width: 100%; max-width: 420px; height: auto;
  margin: 0 auto 18px; border-radius: 28px; background: var(--art-wash);
}
.chip {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 12px 5px; border-radius: 6px;
  background: var(--violet-surface); color: #760dde;
  font-size: 13px; font-weight: 500;
}
/* Codeit 히어로의 성격은 68px / 800 / -1.5px 이다. 모바일에서는 크기만 줄이고
   무게와 조임은 그대로 가져간다 */
.hero h1 {
  margin: 0 0 16px; font-size: 36px; line-height: 1.25;
  letter-spacing: -1.6px; font-weight: 800; color: var(--ink);
}
.hero__lead { margin: 0 0 28px; font-size: 17px; line-height: 1.56; color: var(--ink-60); }
.hero .btn + .btn { margin-top: 8px; }

/* ── 온보딩 ────────────────────────────────────── */

/* 세 칸 격자. 마지막 화면에서 건너뛰기가 사라져도 가운데 점이 안 움직인다 */
.gtop {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; height: 48px; margin-bottom: 28px;
}
.gtop > :first-child { justify-self: start; }
.gtop > :last-child { justify-self: end; }
.gtop button {
  border: 0; background: none; cursor: pointer; padding: 8px;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-45);
}
.gtop button:hover { color: #760dde; }
.gtop button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 8px; }
.gback { font-size: 20px !important; line-height: 1; color: var(--ink) !important; }

.dots { display: flex; gap: 6px; }
.dots i {
  display: block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--ink-10);
  transition: width 220ms cubic-bezier(.2,.6,.25,1), background 220ms cubic-bezier(.2,.6,.25,1);
}
.dots i.is-on { width: 22px; background: var(--purple); }

.panel { display: none; }
.panel.is-on { display: block; animation: panelInFwd 260ms cubic-bezier(.2,.6,.25,1); }
.panel.is-on.dir-back { animation-name: panelInBack; }
@keyframes panelInFwd {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes panelInBack {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .panel.is-on, .panel.is-on.dir-back { animation: none; } }

.tile {
  width: 64px; height: 64px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.tile .lucide { width: 32px; height: 32px; margin: 0; display: block; color: var(--ink); }
.ptag { display: inline-block; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: var(--ink-45); }
.ptitle {
  margin: 0 0 6px; font-size: 32px; line-height: 1.34;
  letter-spacing: -.3px; font-weight: 700; color: var(--ink);
}
.psub { margin: 0 0 20px; font-size: 18px; line-height: 1.5; letter-spacing: -.3px; font-weight: 700; color: var(--ink); }
.pbody { margin: 0; font-size: 16px; line-height: 1.62; color: var(--ink-60); }
.pbody + .pbody { margin-top: 14px; }

/* 사랑을 이렇게 줘요 / 이럴 때 서운해요 */
.facts { margin: 28px 0 0; display: grid; gap: 10px; }
.fact { padding: 16px 18px; border-radius: 24px; background: var(--surface); }
.fact dt { font-size: 13px; font-weight: 500; color: var(--ink-45); margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }

/* 순서 설명 화면의 작은 도식. 위아래로 문단이 붙는다 */
.stack { display: grid; gap: 8px; margin: 24px 0 22px; }
.stackrow {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 24px; background: var(--surface);
}
.stackrow > i { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.stackrow b { font-size: 16px; font-weight: 700; }
.stackrow em { margin-left: auto; font-style: normal; font-size: 14px; color: var(--ink-45); }
.stackrow--blind { background: var(--canvas); border: 1px dashed var(--ink-20); }

.field { margin-top: 28px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--ink-45); }
.field__optional {
  margin-left: 4px; padding: 2px 6px; border-radius: 4px;
  background: var(--surface); font-size: 11px;
}
/* 첫 화면에서는 이름 칸이 제목과 버튼 사이에 낀다. 버튼에 더 가깝게 붙여서
   "적고 누르는" 한 덩어리로 보이게 한다 */
.hero .field { margin: 24px 0 14px; text-align: left; }
.field input {
  width: 100%; min-height: 55px; padding: 14px 17px;
  border: 1px solid var(--ink-20); border-radius: 16px;
  background: var(--canvas); color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color 140ms cubic-bezier(.25,.1,.25,1);
}
.field input:hover { border-color: var(--purple); }
.field input:focus { border-color: var(--purple); }
.field input::placeholder { color: var(--ink-45); }
.field input:focus-visible { outline: 2px solid var(--purple); outline-offset: 0; }

/* ── 문항 ──────────────────────────────────────── */

.qbar { display: flex; align-items: center; gap: 12px; padding: 16px 0 20px; }
.qbar__track { flex: 1; height: 6px; border-radius: 999px; background: var(--ink-10); overflow: hidden; }
.qbar__fill {
  display: block; height: 100%; border-radius: 999px; background: var(--purple);
  transition: width 220ms cubic-bezier(.2,.6,.25,1);
}
.qbar__n { font-size: 13px; font-weight: 500; color: var(--ink-45); flex-shrink: 0; }

/* 문항이 갈릴 때 안쪽만 한 번 밀어 올린다. 같은 자리에서 글자만 바뀌면
   넘어간 건지 안 넘어간 건지가 안 보인다. 앞으로 갈 땐 아래에서 올라오고,
   이전으로 갈 땐 위에서 내려온다. 진행 막대는 이 밖에 있어서 안 움직인다 */
.qflow { animation: qIn 300ms cubic-bezier(.2, .6, .25, 1); }
.qflow.dir-back { animation-name: qInBack; }
@keyframes qIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes qInBack {
  from { opacity: 0; transform: translateY(-26px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qflow, .panel.is-on { animation: none; }
}

/* 그림 자리. 파일이 아직 없으면 tone 색면만 남고 레이아웃은 그대로다 */
.qart {
  position: relative; margin: 0 0 20px;
  border-radius: 24px; overflow: hidden; background: var(--surface);
  aspect-ratio: 16 / 9;
}
/* 이 검사는 문항 그림이 없어서 색 띠 한 줄로 쓴다. 왼쪽에 지금 받을 때인지 해줄 때인지,
   오른쪽에 장면 딱지. 색도 받을 때(분홍)와 해줄 때(민트)로 갈린다 */
.qart--empty {
  aspect-ratio: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 14px;
}
.qart--empty .qart__chip { position: static; max-width: 100%; }
.qart__part { font-size: 13px; font-weight: 700; color: var(--ink-60); padding-left: 4px; }
.qart img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qart[data-tone="sky"]      { background: #eaf1ff; }
.qart[data-tone="amber"]    { background: #fff4e0; }
.qart[data-tone="magenta"]  { background: var(--pink-surface); }
.qart[data-tone="mint"]     { background: #e4f7e9; }
.qart[data-tone="lavender"] { background: var(--violet-surface); }

.qart__chip {
  position: absolute; left: 14px; top: 14px;
  padding: 7px 14px; border-radius: 999px; background: var(--canvas);
  font-size: 13px; font-weight: 500; color: var(--ink);
  max-width: calc(100% - 28px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.qtext {
  margin: 0 0 24px; font-size: 26px; line-height: 1.35;
  letter-spacing: -.8px; font-weight: 700; color: var(--ink);
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  text-wrap: pretty;
}

.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; padding: 17px 16px; text-align: left;
  border: 1px solid var(--ink-10); border-radius: 16px;
  background: var(--canvas); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.5; font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms cubic-bezier(.25,.1,.25,1),
              background 120ms cubic-bezier(.25,.1,.25,1),
              transform 120ms cubic-bezier(.25,.1,.25,1);
}
.opt:hover { border-color: var(--purple); background: var(--violet-surface); }
.opt:active { transform: scale(.995); }
.opt:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.opt.is-picked { border-color: var(--purple); background: var(--violet-surface); }
.opt__mark {
  flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 999px; border: 1px solid var(--ink-20);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 500; color: var(--ink-45); background: var(--canvas);
}
.opt.is-picked .opt__mark { border-color: var(--purple); background: var(--purple); color: #fff; }

/* ── 결과 ──────────────────────────────────────── */

.card {
  padding: 24px; margin-bottom: 12px;
  background: var(--canvas); border: 0; border-radius: 24px;
}
.card--hero { box-shadow: none; }

body.is-result {
  background: var(--surface);
}
#screen-result.is-on {
  background: var(--surface);
}
#screen-result .topnav .homelink {
  background: #fff;
}
.card h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.card h2 small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink-45); }
.card p { margin: 0 0 12px; font-size: 16px; line-height: 1.62; color: var(--ink-60); }
.card p:last-child { margin-bottom: 0; }

.rwho { margin: 0 0 14px; font-size: 15px; font-weight: 500; color: var(--ink-45); }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.rchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px 5px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #fff;
}
/* 사각지대는 색을 안 채운다. 비어 있다는 게 이 칩의 뜻이다 */
.rchip--blind { background: var(--surface); color: var(--ink-60); }

.rnick {
  margin: 0 0 10px; font-size: 32px; line-height: 1.28;
  letter-spacing: -1px; font-weight: 800; color: var(--ink);
}
.rtag { margin: 0 0 20px; font-size: 18px; line-height: 1.5; font-weight: 700; color: var(--ink); }
/* 결과 캐릭터. 별명과 한 줄 바로 밑에 둔다. 설명을 읽기 전에 "이게 나구나" 가
   먼저 오는 자리다. 여섯 유형이 한 장씩 갖는다 (js/instinct-types.js 의 art) */
.rart {
  display: block; width: 100%; height: auto;
  margin: 0 0 20px; border-radius: 24px; background: var(--art-wash);
}
.rdesc { margin: 0; font-size: 16px; line-height: 1.62; color: var(--ink-60); }

/* 막대 셋. 여기만 한 화면에 색이 셋인데, 차트라 갈래 색을 그대로 쓴다 */
.bars { display: grid; gap: 18px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ink-10); }
.brow__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.brow__name { font-size: 16px; font-weight: 700; }
.brow__rank { font-size: 13px; font-weight: 500; color: var(--ink-45); }
.brow__track { display: block; height: 8px; border-radius: 999px; background: var(--ink-10); overflow: hidden; }
.brow__fill { display: block; height: 100%; border-radius: 999px; }
.brow__line { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-45); }

/* 1순위 본능으로 고른 공감 블록. 서운함 목록(.hurts)과 나란히 놓이므로
   같은 알약 모양을 쓰되 바탕을 연보라로 두어 "지난 얘기" 와 "지금 서운한 것" 을 나눈다 */
.calls { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.calls li {
  padding: 14px 16px; border-radius: 16px;
  background: var(--violet-surface);
  font-size: 15px; line-height: 1.55; color: var(--ink);
}
.callWhy { margin: 14px 0 0 !important; font-size: 15px; line-height: 1.6;
  font-weight: 700; color: var(--ink) !important; }

.hurts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hurts li {
  position: relative; padding: 14px 16px 14px 38px;
  border-radius: 16px; background: var(--surface);
  font-size: 16px; line-height: 1.5; color: var(--ink);
}
.hurts li::before {
  content: ''; position: absolute; left: 16px; top: 21px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--purple);
}

.fix {
  margin-top: 16px; padding: 18px;
  border-radius: 24px; background: var(--violet-surface);
  font-size: 16px; line-height: 1.62; color: var(--ink);
}

.pair { padding: 18px; border-radius: 24px; margin-bottom: 10px; }
.pair:last-child { margin-bottom: 0; }
.pair--good { background: var(--violet-tint); }
.pair--hard { background: var(--surface); }
.pair b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.pair span { font-size: 15px; line-height: 1.55; color: var(--ink-60); }


.answers { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.answers li { border-bottom: 1px solid var(--ink-10); padding-bottom: 16px; }
.answers li:last-child { border-bottom: 0; padding-bottom: 0; }
.a__no { font-size: 13px; font-weight: 500; color: var(--ink-45); }
.a__q { margin: 4px 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.a__pick { margin: 0; font-size: 15px; color: #760dde; }

details.foldable > summary {
  cursor: pointer; font-size: 16px; font-weight: 700; color: var(--ink); list-style: none;
}
details.foldable > summary::-webkit-details-marker { display: none; }
details.foldable > summary::after { content: ' 펼치기'; font-weight: 500; color: var(--ink-45); }
details.foldable[open] > summary::after { content: ' 접기'; }
details.foldable[open] > summary { margin-bottom: 16px; }
details.foldable > summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.note { margin: 20px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-45); }

/* ── 알림 토스트 ───────────────────────────────── */

.snackbar {
  position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 12px);
  padding: 14px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms cubic-bezier(.2,.6,.25,1), transform 220ms cubic-bezier(.2,.6,.25,1);
  z-index: 40; max-width: calc(100% - 40px); text-align: center;
}
.snackbar.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 600px) {
  .hero h1 { font-size: 46px; }
  .heroArt { max-width: 460px; }
  .ptitle { font-size: 36px; }
  .rnick { font-size: 38px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 34px; }
  .heroArt { margin-bottom: 12px; }
  .ptitle { font-size: 27px; }
  .qtext { font-size: 22px; }
  .rnick { font-size: 27px; }
}

/* ── 사랑받는 순서 전용 ─────────────────────────── */

/* 애인 링크로 들어왔을 때 첫 화면에 붙는 한 줄 */
.invited {
  margin: 0 0 4px; padding: 14px 16px; border-radius: 16px;
  background: #fff; color: var(--ink); font-size: 15px; line-height: 1.55; text-align: left;
}

/* 온보딩 다섯 갈래 목록 */
.kinds { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kind { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 20px; background: var(--surface); }
.kind__tile { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.kind__tile .lucide { width: 22px; height: 22px; margin: 0; color: var(--ink); }
.kind__body b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.kind__body span { font-size: 14px; line-height: 1.55; color: var(--ink-60); }

/* 순서 두 줄. 점 색이 갈래 색이고 맨 뒤(사각지대)만 회색이다 */
.orders { display: grid; gap: 12px; margin-bottom: 16px; }
.orow__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--ink-45); }
.orow ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.orow li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px 5px; border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.orow li i { width: 8px; height: 8px; border-radius: 999px; }
.orow li.is-blind { color: var(--ink-45); font-weight: 500; }

/* 애인과 비교. 방향마다 한 덩어리 */
.cmp { padding: 18px; border-radius: 20px; background: var(--violet-surface); margin-top: 10px; }
.cmp__title { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.card .cmp p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.card .cmp p:last-child { margin-bottom: 0; font-weight: 700; }

.invite .btn { width: 100%; margin-top: 4px; }

/* 문항 사진이 있을 때. 장면 딱지는 왼쪽 위, 받을 때/해줄 때 딱지는 왼쪽 아래 */
.qart:not(.qart--empty) .qart__part {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(51, 50, 54, .72); color: #fff; font-size: 12px;
}

/* 비교를 보낸 사람한테 돌려주는 버튼. 비교 덩어리 바로 아래에 붙는다 */
.sendback { margin-top: 14px; }
