/* ═══════════════════════════════════════════════════════
   Scenario Us · Main Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────── */
:root {
  --bg:        #FDFBF7;
  --bg2:       #FAF5EF;
  --bg3:       #F3ECE3;
  --card:      #FFFFFF;
  --border:    rgba(0, 0, 0, 0.07);
  --rose:      #D9536F;
  --rose-light:#E26D85;
  --rose-dim:  rgba(217, 83, 111, 0.08);
  --gold:      #C8963E;
  --gold-dim:  rgba(200, 150, 62, 0.12);
  --text:      #2C363F;
  --text2:     #5A6B7C;
  --text3:     #8C9BA5;
  --success:   #27AE60;
  --warning:   #E67E22;
  --danger:    #E74C3C;
  --radius:    20px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.04);
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --font:      'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Apple SD Gothic Neo', sans-serif;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  --app-footer-h: 44px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; }
input, select, textarea { font-family: var(--font); }

/* ── Screen System ──────────────────────────────────── */
.screen {
  display: none;
  min-height: 100vh;
  animation: fadeIn 0.4s ease;
}
.screen.active {
  display: block;
  padding-bottom: calc(var(--app-footer-h) + env(safe-area-inset-bottom, 0px));
}
.screen.active.screen--instant {
  animation: none;
}

/** 공유 링크(?r=): 랜딩·분석 중·푸터 없이 결과지만 */
html.su-share-pending .screen,
html.su-share-pending #app-footer {
  display: none !important;
}
html.su-share-pending body {
  background: var(--cream, #faf8f5);
}
html.su-share-view .screen:not(#screen-result),
html.su-share-view #app-footer {
  display: none !important;
}
html.su-share-view #screen-result {
  display: block !important;
}
html.su-share-view #screen-result.active {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.su-share-loading .screen {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Container ──────────────────────────────────────── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography ─────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text2); }

.highlight { color: var(--rose); }
.gold      { color: var(--gold); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--rose), #C84660);
  color: #fff;
  box-shadow: 0 4px 20px rgba(217, 83, 111, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217, 83, 111, 0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.btn-secondary:hover { background: var(--bg3); border-color: rgba(0,0,0,0.15); color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text2); color: var(--text); background: rgba(0,0,0,0.02); }
button:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.btn-large { padding: 16px 42px; font-size: 1.05rem; border-radius: 9999px; }
.landing-cta .btn-large { border-radius: 9999px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* ── Form ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition);
  -webkit-appearance: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.form-control:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(217, 83, 111, 0.12);
}
.form-control option { background: var(--card); color: var(--text); }

/* ── Gender Radio ───────────────────────────────────── */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  color: var(--text2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.radio-label input[type="radio"] { display: none; }
.radio-label:hover {
  border-color: rgba(217, 83, 111, 0.3);
  background: var(--bg2);
  color: var(--text);
}
.radio-label:has(input:checked),
.radio-label.checked {
  border-color: var(--rose);
  background: var(--rose-dim);
  color: var(--rose);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════
   SCREEN 1 · LANDING
   ════════════════════════════════════════════════════════ */
#screen-landing.active {
  display: block;
}
#screen-landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% 30%, rgba(245, 235, 210, 0.45) 0%, rgba(253, 251, 247, 0) 70%);
}
.landing-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}
.landing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(253, 251, 247, 0.15) 0%,
    transparent 20%,
    transparent 75%,
    rgba(253, 251, 247, 0.75) 100%
  );
}

.sound-toggle-fixed {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  line-height: 1;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.sound-toggle-fixed:hover {
  background: rgba(255, 255, 255, 0.98);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.landing-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  color: var(--text2);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.landing-sound-btn:hover {
  background: #FFFFFF;
  color: var(--text);
}

.landing-content {
  position: relative;
  z-index: 10;
  padding: clamp(32px, 6vh, 60px) clamp(14px, 4vw, 24px) clamp(48px, 8vh, 80px);
  padding-left: max(clamp(14px, 4vw, 24px), env(safe-area-inset-left));
  padding-right: max(clamp(14px, 4vw, 24px), env(safe-area-inset-right));
  width: 100%;
  max-width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.landing-hero-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.logo-text {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.logo-subtext-ko {
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.25em;
  margin-top: 6px;
  line-height: 1.2;
}

.landing-title {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.landing-manifesto {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 22px 28px;
  max-width: min(580px, 100%);
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.manifesto-question {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  color: var(--text) !important;
}
.landing-manifesto p {
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.75;
}

.landing-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text2);
}

.landing-cta { margin-bottom: 28px; }
.landing-note {
  font-size: 0.8rem;
  color: #ffffff;
}

.landing-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--rose);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text3);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════
   ENTRY / COUPLE (시나리오 시작 분기)
   ════════════════════════════════════════════════════════ */
#screen-entry,
#screen-couple {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

#screen-couple-result {
  background: var(--bg);
  min-height: 100vh;
  padding: 48px 20px 64px;
}

.entry-page-inner,
.couple-page-inner {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding: 48px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left));
}

.entry-body,
.couple-body {
  flex: 1 1 auto;
}

.entry-screen-footer.form-footer,
.couple-screen-footer.form-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 28px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  justify-content: flex-start;
}

.couple-result-page {
  max-width: 520px;
  margin: 0 auto;
}

.entry-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--rose-dim);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.entry-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.couple-link-title {
  text-align: left;
  line-height: 1.45;
  margin-bottom: 22px;
}

.entry-desc {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 28px;
}

.entry-actions {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.entry-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.entry-option-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.55;
  text-align: center;
}

/* 시작하기 · 커플 옵션: 한 줄 유지(좁은 폭에서는 글자만 살짝 줄임, 그래도 넘치면 가로 스크롤) */
.entry-option-desc--one-line {
  white-space: nowrap;
  font-size: clamp(0.55rem, 2.05vw, 0.88rem);
  letter-spacing: -0.02em;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.entry-choice {
  width: 100%;
  justify-content: center;
}

.entry-footnote {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--text3);
  line-height: 1.55;
}

.couple-field {
  margin-bottom: 20px;
}

.couple-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 8px;
}

.couple-input {
  width: 100%;
}

.couple-field-error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #fb7185;
  font-weight: 600;
}

.couple-field-error[hidden] {
  display: none !important;
}

.couple-analyze {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}

.couple-analyze:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.couple-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 8px 0 24px;
  text-align: center;
  color: var(--text);
}

.couple-result-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px 28px;
  margin-bottom: 24px;
}

.couple-result-kicker {
  font-size: 0.82rem;
  color: var(--text3);
  margin: 0 0 18px;
  line-height: 1.5;
}

.couple-pair-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .couple-pair-cards {
    grid-template-columns: 1fr;
  }
}

.couple-mini-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}

.couple-mini-card--accent {
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.12) inset;
}

.couple-mini-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text3);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.couple-mini-code,
.couple-mini-character {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--rose);
  letter-spacing: 0.02em;
}

.couple-mini-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 8px;
}

.couple-mini-meta {
  font-size: 0.8rem;
  color: var(--text2);
}

.couple-result-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.couple-result-h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}

.couple-result-lead {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.65;
  margin: 0 0 12px;
}

.couple-result-ul,
.couple-result-ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.couple-result-ol {
  padding-left: 1.25rem;
}

.couple-result-section--indigo {
  border-color: rgba(129, 140, 248, 0.25);
}

.couple-result-section--amber {
  border-color: rgba(251, 191, 36, 0.25);
}

.couple-result-closing {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
}

/* ════════════════════════════════════════════════════════
   SCREEN 2 · ONBOARDING
   ════════════════════════════════════════════════════════ */
#screen-onboarding { background: var(--bg); }

.onboarding-header {
  background: linear-gradient(180deg, var(--bg2) 0%, transparent 100%);
  padding: 40px 20px 0;
  text-align: center;
  margin-bottom: 32px;
}
.onboarding-header .step-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--rose-dim);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.onboarding-header h2 { margin-bottom: 8px; }
.onboarding-header p { font-size: 0.95rem; }

.onboarding-form {
  padding: 0 20px 320px;
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.birth-date-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 10px;
}
.birth-date-inline {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 4px;
}
.birth-select {
  width: 100%;
  min-width: 0;
  flex-shrink: 1;
  text-align: center;
}
.birth-combobox-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 0 0 auto;
}
.birth-combobox-wrap--year {
  width: 68px;
}
.birth-combobox-wrap--month,
.birth-combobox-wrap--day {
  width: 42px;
}
.birth-combobox .su-combobox-input.birth-select {
  padding: 8px 4px;
  font-size: 0.88rem;
}
.birth-combobox-wrap .su-field-error {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
.form-group:has(.birth-date-inline) {
  margin-bottom: 28px;
}
.birth-combobox .su-combobox-list {
  min-width: 72px;
}
.su-combobox {
  position: relative;
}
.su-combobox-input {
  -webkit-appearance: none;
  appearance: none;
}
.su-combobox-input--invalid {
  border-color: #fb7185 !important;
  box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.2) !important;
}
.su-combobox-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 100%;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 50;
}
.su-combobox-list[hidden] {
  display: none !important;
}
.su-combobox-option {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}
.su-combobox-option:hover,
.su-combobox-option.is-highlighted {
  background: rgba(255, 255, 255, 0.1);
}
.su-field-error {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #fb7185;
  font-weight: 600;
}
.su-field-error[hidden] {
  display: none !important;
}
#btn-onboarding-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.birth-unit {
  font-size: 0.88rem;
  color: var(--text2);
  white-space: nowrap;
  margin-top: 10px;
  flex-shrink: 0;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* ════════════════════════════════════════════════════════
   SCREEN 3 · LEVEL SELECTION
   ════════════════════════════════════════════════════════ */
#screen-level { background: var(--bg); padding-bottom: 80px; }

.level-header {
  padding: 40px 20px 32px;
  text-align: center;
}
.level-header h2 { margin-bottom: 10px; }
.level-header p { font-size: 0.95rem; }

.level-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.level-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
}
.level-card:hover {
  border-color: rgba(255,255,255,0.4);
  background: var(--bg3);
  transform: translateX(4px);
}
.level-card.selected {
  border-color: var(--rose);
  background: var(--rose-dim);
}
.level-card--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.level-card--disabled::after {
  content: '준비 중';
  font-size: 0.72rem;
  color: var(--text3);
  font-weight: 600;
  margin-left: 8px;
}

.level-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text3);
  border: 2px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0;
}
.level-card.selected .level-num {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

.level-info { min-width: 0; }
.level-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.level-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0;
}
.level-duration {
  font-size: 0.8rem;
  color: var(--text3);
}
.level-desc { font-size: 0.85rem; color: var(--text2); margin-top: 4px; }

.level-meta { text-align: right; flex-shrink: 0; }
.level-count {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text2);
}
.level-weight {
  font-size: 0.75rem;
  color: var(--rose);
  font-weight: 600;
}

.level-footer {
  max-width: 680px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
}

/* ════════════════════════════════════════════════════════
   SCREEN 4 · SURVEY
   ════════════════════════════════════════════════════════ */
#screen-survey.active {
  display: flex;
  flex-direction: column;
}
#screen-survey {
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.survey-progress-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text3);
}
.progress-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
#progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--rose-light));
  border-radius: 4px;
  transition: width 0.4s ease;
  min-width: 4px;
}

.survey-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left));
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.survey-page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.question-level-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7ee8a2;
  background: rgba(126,232,162,0.15);
  padding: 4px 10px;
  border-radius: 50px;
}
.question-axis-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 50px;
}

/* Scale header - hidden (labels now inline per question) */
.survey-scale-header { display: none; }

/* Multi-question list */
#survey-questions-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.question-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  transition: border-color 0.2s;
}
.question-item:has(.answer-btn-inline.selected) {
  border-color: rgba(255,255,255,0.15);
}

.question-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.question-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rose);
}
.question-text {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 14px;
}

/* Inline answer buttons */
.answer-options-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
  width: 100%;
}
.scale-label-left,
.scale-label-right {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  flex-shrink: 0;
}
.answer-btn-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease, width 0.2s ease, height 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}
/* 숫자 없음 — 4점 척도(0·3 양끝 약간 큼) */
.answer-btn-inline.scale-ans--0,
.answer-btn-inline.scale-ans--3 {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.26) 0%, rgba(200, 206, 216, 0.22) 38%, rgba(120, 128, 140, 0.14) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.answer-btn-inline.scale-ans--1,
.answer-btn-inline.scale-ans--2 {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22) 0%, rgba(195, 202, 212, 0.2) 45%, rgba(115, 123, 135, 0.12) 100%);
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.answer-btn-inline:hover {
  filter: brightness(1.08);
  border-color: rgba(255, 255, 255, 0.35);
}
.answer-btn-inline.selected {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.55);
  filter: brightness(1.1);
  transform: scale(1.05);
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.survey-nav .btn {
  min-width: 100px;
}

/* ════════════════════════════════════════════════════════
   SCREEN 5 · THE KICK
   ════════════════════════════════════════════════════════ */
#screen-kick.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
#screen-kick {
  background: var(--bg);
  padding: 40px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left));
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
}

.kick-content {
  max-width: 600px;
  width: 100%;
  text-align: center;
}
.kick-icon { font-size: 3rem; margin-bottom: 20px; }
.kick-content h2 {
  margin-bottom: 12px;
  white-space: normal;
  line-height: 1.35;
  word-break: keep-all;
  font-size: clamp(0.95rem, 3.2vw, 1.7rem);
}
.kick-content > p { margin-bottom: 32px; font-size: 0.95rem; }

.kick-textarea-wrap { text-align: left; margin-bottom: 8px; }
.kick-textarea-wrap label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.kick-label-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.kick-label-mine {
  background: rgba(232,69,90,0.2);
  color: #ff7b8a;
  border: 1px solid rgba(232,69,90,0.35);
}
.kick-label-partner {
  background: rgba(79,70,229,0.2);
  color: #a5b4fc;
  border: 1px solid rgba(79,70,229,0.35);
}
#kick-text-my,
#kick-text-partner {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 14px;
  transition: var(--transition);
}
#kick-text-my:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px var(--rose-dim);
}
#kick-text-partner:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.18);
}
.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 6px;
}
.kick-skip { margin-top: 12px; }

/* ════════════════════════════════════════════════════════
   SCREEN 6 · PROCESSING
   ════════════════════════════════════════════════════════ */
#screen-processing.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#screen-processing {
  background: var(--bg);
  text-align: center;
  padding: 40px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left));
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.processing-animation {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 40px;
}
.processing-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--border);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.processing-ring:nth-child(2) {
  inset: 12px;
  border-top-color: var(--gold);
  animation-duration: 1.5s;
  animation-direction: reverse;
}
.processing-inner {
  position: absolute;
  inset: 30px;
  background: var(--rose-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: pulse 2s ease infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.9); opacity: 0.7; }
}

#processing-step {
  color: var(--rose-light);
  font-size: 1rem;
  font-weight: 600;
  min-height: 1.5em;
  animation: fadeStep 0.5s ease;
}
@keyframes fadeStep {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════
   SCREEN 7 · RESULT
   ════════════════════════════════════════════════════════ */
#screen-result {
  background: var(--bg);
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: 96px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

/* Result Hero */
.result-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,69,90,0.12) 0%, transparent 70%),
    var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Result Hero Identity Row ────────────────────── */
.result-hero-identity {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
  margin-bottom: 28px;
}
.result-type-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* ── Character Card ─────────────────────────────── */
.character-card {
  position: relative;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
}
.character-img {
  display: block;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 8px rgba(232,69,90,0.12), 0 12px 48px rgba(0,0,0,0.55);
  animation: characterReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  background: var(--card);
  /* PNG·SVG 동일 240 프레임; 비율 다른 원본도 원 안에 맞춤 */
  aspect-ratio: 1;
}
.character-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--char-glow, rgba(232,69,90,0.25)) 0%, transparent 70%);
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes characterReveal {
  from { transform: scale(0.5) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

.result-emoji-wrap {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounceIn 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
}
@keyframes bounceIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.result-type-code {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(255,255,255,0.35), 0 4px 24px rgba(0,0,0,0.6);
  margin-bottom: 6px;
  text-align: left;
}
.result-type-name {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 10px;
  text-align: left;
}
.result-tagline {
  font-size: clamp(0.65rem, 2.4vw, 0.95rem);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin: 0;
  line-height: 1.45;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  /* 모든 유형 한줄 문구: 줄바꿈 없이 한 줄로 표시 */
  white-space: nowrap;
  max-width: min(720px, calc(100vw - 48px));
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.result-tagline::-webkit-scrollbar {
  height: 4px;
}
.result-tagline::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
}

.overall-health-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  margin-bottom: 16px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}
.score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.score-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: 0.05em;
  text-transform: none;
  white-space: nowrap;
}
.score-num-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.health-score-big {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}
.health-score-big.score-danger  { color: #f87171; }
.health-score-big.score-warning { color: #fb923c; }
.health-score-big.score-normal  { color: #ffffff; }
.health-score-big.score-silver  { color: #cbd5e1; }
.health-score-big.score-gold    { color: #f4c842; }
.health-score-unit { font-size: 1.2rem; color: var(--text2); }
.health-info { text-align: left; flex: 1; min-width: 0; }
.health-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.health-label.excellent { background: rgba(74,222,128,0.15); color: #4ade80; }
.health-label.good      { background: rgba(96,165,250,0.15); color: #60a5fa; }
.health-label.average   { background: rgba(251,191,36,0.15); color: #fbbf24; }
.health-label.warning   { background: rgba(251,146,60,0.15); color: #fb923c; }
.health-label.danger    { background: rgba(248,113,113,0.15); color: #f87171; }
.health-status-text { font-size: 0.85rem; color: var(--text2); }

.result-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Result Sections */
.result-sections { max-width: 800px; margin: 0 auto; padding: 0 20px; }

.result-section {
  margin-top: 40px;
}
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-title .section-icon { font-size: 1.2rem; }

/* Description card */
.description-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.8;
}

/* Strengths & Weaknesses */
.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sw-group h4 { margin-bottom: 12px; font-size: 1rem; font-weight: 600; color: var(--text); }
.sw-group ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text2);
}
.sw-group ul li:last-child { border-bottom: none; }

/* Conflict style */
.conflict-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}
.conflict-card h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  margin-bottom: 8px;
}
.conflict-card p { font-size: 0.9rem; color: var(--text2); line-height: 1.7; }

/* 8 리스크 프로필 — 도넛 + 카드 그리드 */
.risk-profile-viz {
  margin-top: 4px;
}
.risk-profile-viz-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.risk-donut-panel {
  position: relative;
  width: min(220px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto;
  flex-shrink: 0;
}
.risk-donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
.risk-donut-hole {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: rgba(12, 14, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  gap: 2px;
}
.risk-donut-pct {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--donut-accent, #fff);
  line-height: 1.1;
}
.risk-donut-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--donut-accent, #fff) 72%, white);
  line-height: 1.25;
}
.risk-profile-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.risk-profile-card {
  --type-color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--type-color) 32%, transparent);
  background: color-mix(in srgb, var(--type-color) 7%, rgba(255, 255, 255, 0.03));
}
.risk-profile-card--primary {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-color: color-mix(in srgb, var(--type-color) 48%, transparent);
  background: color-mix(in srgb, var(--type-color) 14%, rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--type-color) 12%, transparent);
}
.risk-profile-card--secondary {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--type-color) 40%, transparent);
  background: color-mix(in srgb, var(--type-color) 10%, rgba(255, 255, 255, 0.03));
}
.risk-profile-card-ring {
  --pct: 12;
  --ring-color: #6c5ce7;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--ring-color) 0 calc(var(--pct) * 1%),
    rgba(255, 255, 255, 0.1) 0 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.risk-profile-card--primary .risk-profile-card-ring {
  width: 58px;
  height: 58px;
}
.risk-profile-card-ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(14, 16, 24, 0.92);
}
.risk-profile-card-pct {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--ring-color, #fff) 88%, white);
}
.risk-profile-card--primary .risk-profile-card-pct {
  font-size: 0.88rem;
}
.risk-profile-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.risk-profile-card-rank {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--type-color) 70%, rgba(255, 255, 255, 0.55));
  text-transform: uppercase;
}
.risk-profile-card--primary .risk-profile-card-rank,
.risk-profile-card--secondary .risk-profile-card-rank {
  color: color-mix(in srgb, var(--type-color) 82%, white);
}
.risk-profile-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--type-color) 18%, var(--text));
  line-height: 1.3;
}
.risk-profile-card-sub {
  font-size: 0.72rem;
  color: var(--text2);
  line-height: 1.35;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 520px) {
  .risk-profile-viz-layout {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .risk-donut-panel {
    width: 200px;
    margin: 0;
  }
  .risk-profile-grid {
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .risk-profile-card--primary,
  .risk-profile-card--secondary {
    grid-column: auto;
  }
}

/* Axis bars (legacy) */
.axis-bars-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.axis-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.axis-label-row {
  display: flex;
  align-items: center;
}
.axis-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
}
.axis-dual-bar {
  display: flex;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  gap: 2px;
}
.axis-half {
  display: flex;
  align-items: center;
  min-width: 0;
  transition: flex 0.8s ease;
  border-radius: 8px;
  position: relative;
}
.axis-half-left  { justify-content: center; padding: 0 8px; }
.axis-half-right { justify-content: center; padding: 0 8px; }
.axis-half-label {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.3;
}
.axis-half-label b { font-size: 1rem; font-weight: 800; display: block; }

/* 8 리스크 막대 — 표시용 비율(1~2위 강조) */
.risk-bar-pct {
  font-size: 0.88em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}
.risk-bar-row--primary .risk-bar-pct {
  color: #fda4af;
  font-weight: 800;
}
.risk-bar-row--secondary .risk-bar-pct {
  color: #c4b5fd;
  font-weight: 700;
}
.risk-bar-fill--emphasis-primary {
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.45);
  min-height: 10px;
}
.risk-bar-fill--emphasis-secondary {
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.35);
  min-height: 9px;
}
.risk-bar-row--primary .risk-bar-track {
  height: 10px;
}
.risk-bar-row--secondary .risk-bar-track {
  height: 9px;
}
.risk-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.risk-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.risk-bar-track {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.risk-bar-fill {
  height: 100%;
  border-radius: 6px;
  min-width: 4px;
  transition: width 0.75s ease, background 0.45s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.risk-detail-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text2);
  margin: 0 0 6px;
}
.risk-detail-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.55;
}

/* Radar Chart */
.radar-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.radar-chart-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* Health dimension pills */
.health-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: center;
}
.health-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
}
.health-pill .pill-score {
  font-weight: 700;
  color: #ffffff;
}
.health-pill .pill-score.gold {
  color: #f4c842;
}

/* Insights */
.insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.insight-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.insight-card::before { background: var(--rose); }

.insight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.insight-number {
  width: 24px;
  height: 24px;
  background: var(--bg3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text2);
  flex-shrink: 0;
}

/* AI Gemini 배지 */
.ai-badge {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important;
  font-size: 0.65rem !important;
  width: 28px !important;
  height: 28px !important;
  letter-spacing: 0;
}

/* 개인 상황 기반 카드 (kickText) */
.insight-card--kick {
  border-color: rgba(124, 58, 237, 0.25);
}
.insight-card--kick::before { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

/* AI 로딩 상태 */
.insight-card--ai-loading {
  border-color: rgba(124, 58, 237, 0.3);
}
.insight-card--ai-loading::before { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.insight-card--ai { border-color: rgba(124, 58, 237, 0.35); }
.insight-card--ai::before        { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

/* 인생주기 카드 */
.insight-card--lifestage { border-color: rgba(244, 200, 66, 0.3); }
.insight-card--lifestage::before { background: linear-gradient(135deg, #f4c842, #f97316); }

/* 결과지 「추가 인사이트 · 참고」— 좌측 강조선만 흰색 */
#insights-list .insight-card.insight-card--reference::before {
  background: rgba(255, 255, 255, 0.92);
}
.lifestage-badge {
  background: linear-gradient(135deg, #f4c842, #f97316) !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  width: 28px !important;
  height: 28px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.ai-loading-bar {
  width: 100%;
  height: 4px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}
.ai-loading-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #4f46e5);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: ai-loading-slide 1.4s ease-in-out infinite;
}
@keyframes ai-loading-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.ai-loading-text {
  opacity: 0.5;
  font-style: italic;
}
.risk-badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}
.risk-badge.high   { background: rgba(248,113,113,0.15); color: #f87171; }
.risk-badge.medium { background: rgba(251,146,60,0.15);  color: #fb923c; }
.risk-badge.low    { background: rgba(74,222,128,0.15);  color: #4ade80; }
.insight-risk { font-size: 1rem; font-weight: 700; color: var(--text); }
.insight-desc {
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 16px;
  line-height: 1.6;
}
.insight-desc.report-body-11pt {
  font-size: 12pt;
  line-height: 1.55;
}
.insight-solution {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.solution-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 8px;
}
.insight-solution p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text2);
}
.solution-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.solution-list li {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text2);
  padding-left: 16px;
  position: relative;
}
.solution-list li.report-body-11pt {
  font-size: 12pt;
  line-height: 1.55;
}
.solution-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--rose-light);
  font-size: 0.8rem;
}
.conflict-list {
  margin: 4px 0 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.conflict-list li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text2);
  padding-left: 16px;
  position: relative;
}
.conflict-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--rose);
  font-weight: 900;
}
.radar-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 12px 0 4px;
}
.radar-legend-item {
  font-size: 0.78rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.radar-legend-item::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
}
.radar-legend-mine::before  { background: #e8455a; }
.radar-legend-avg::before   { background: rgba(52,211,153,0.7); }
.insight-citation {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text3);
  font-style: italic;
}
.citation-icon { flex-shrink: 0; }
.no-insights {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--success);
  font-weight: 600;
}

/* Share Section */
.share-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: clamp(28px, 5vw, 48px);
  padding: clamp(20px, 3.5vw, 36px) 0 clamp(24px, 4vw, 40px);
}
.share-desc {
  font-size: .85rem;
  color: var(--text3);
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
  line-height: 1.55;
}
.share-invite {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  padding-left: 12px;
  border-left: 3px solid var(--rose);
  max-width: 420px;
  text-align: left;
  line-height: 1.5;
}
.share-disclaimer-title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
  background: linear-gradient(90deg, #ff7b8a, #f4c842, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 420px;
}
/* 결과지 상단: 한 줄 전체 표시(좁은 화면은 가로 스크롤) */
.share-disclaimer-title.result-hero-disclaimer {
  margin: 0 auto 20px;
  padding: 6px 10px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  text-align: center;
  line-height: 1.35;
}
.share-disclaimer-title.result-hero-disclaimer::-webkit-scrollbar {
  height: 4px;
}
.share-disclaimer-title.result-hero-disclaimer::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 380px;
}
.share-link-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 0.78rem;
  padding: 10px 12px;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-copy-link {
  flex-shrink: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.btn-copy-link:hover { background: var(--card); }

/* Profile Insight */
.profile-insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.age-gender-block {
  background: rgba(232, 69, 90, 0.06);
  border: 1px solid rgba(232, 69, 90, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.age-gender-badge {
  display: inline-block;
  background: var(--rose-dim);
  color: var(--rose-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.age-gender-summary {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 10px;
}
.age-gender-list {
  margin: 0 0 10px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.age-gender-list li {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.7;
  padding-left: 14px;
  position: relative;
}
.age-gender-list li::before {
  content: '·';
  position: absolute;
  left: 3px;
  color: var(--rose);
  font-weight: 900;
}
.age-gender-risk {
  font-size: 0.78rem;
  color: var(--rose-light);
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(232,69,90,0.15);
}
.profile-insight-item {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  padding-left: 14px;
  border-left: 2px solid var(--rose);
  margin: 0;
}

/* Best Match */
.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.match-emoji { font-size: 3rem; flex-shrink: 0; }
.match-code {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.match-name { font-size: 1rem; font-weight: 700; margin: 4px 0; }
.match-desc { font-size: 0.85rem; color: var(--text2); }
.match-badge {
  margin-left: auto;
  padding: 8px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(244,200,66,0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

/* 우리가 잘 만나려면 */
.finale-section {
  margin-top: 8px;
  /* 제목 글자 크기(1.35rem)의 약 1.5배만큼 위 여백 */
  padding-top: calc(1.35rem * 1.5);
}
.finale-main-title {
  background: linear-gradient(90deg, #ff7b8a, #f4c842, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.finale-card {
  background: linear-gradient(145deg, rgba(232, 69, 90, 0.12) 0%, rgba(15, 20, 34, 0.95) 40%, rgba(79, 70, 229, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px 24px 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  min-width: 0;
}
.finale-risk-lead {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin: 0 0 14px;
  opacity: 0.9;
}
/* 시나리오 요약 소제목 — 섹션 메인 타이틀과 동일 그라데이션 */
.finale-scenario-summary-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  background: linear-gradient(90deg, #ff7b8a, #f4c842, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: none;
}
/* 하단 — 레거시 클래스(호환) */
.finale-guide-lead {
  color: rgba(167, 243, 208, 0.95);
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: none;
}
.finale-guide-chips li span {
  border-color: rgba(52, 211, 153, 0.38);
  background: rgba(52, 211, 153, 0.09);
  color: rgba(236, 253, 245, 0.92);
}

/* 우리의 시나리오 — 구체적 실천 + 실천 시 예상 모습·총평 2블록 */
.finale-summary-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 0 28px;
}
.finale-summary-block {
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}
.finale-summary-block--risk {
  border-color: rgba(244, 114, 182, 0.32);
  background: rgba(244, 63, 94, 0.08);
}
.finale-summary-block--guide {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.07);
}
.finale-summary-block-label {
  margin: 0 0 10px;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(251, 207, 232, 0.95);
}
.finale-summary-block--guide .finale-summary-block-label {
  color: rgba(167, 243, 208, 0.95);
}
.finale-summary-block--practice {
  border-color: rgba(250, 204, 21, 0.42);
  background: rgba(250, 204, 21, 0.07);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.06) inset;
}
.finale-summary-block--practice .finale-summary-block-label {
  color: rgba(253, 224, 71, 0.96);
}
.finale-summary-block--practice ol + .finale-summary-block-text {
  margin-top: 14px;
}
.finale-summary-block--practice .finale-summary-block-text + .finale-summary-block-text {
  margin-top: 10px;
}
.finale-practice-ol {
  margin: 4px 0 0;
  padding-left: 1.35rem;
  font-size: 0.88rem;
  line-height: 1.72;
  color: rgba(254, 249, 219, 0.9);
}
.finale-practice-ol li {
  margin-bottom: 8px;
  padding-left: 4px;
  white-space: normal;
  overflow: visible;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.finale-practice-ol li::marker {
  color: rgba(253, 224, 71, 0.85);
  font-weight: 700;
}
.finale-summary-block-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: rgba(240, 244, 255, 0.88);
  white-space: normal;
  overflow: visible;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.finale-summary-block-text em {
  font-style: normal;
  font-weight: 700;
  color: rgba(253, 224, 231, 0.98);
}
.finale-summary-block-text strong {
  font-weight: 700;
  color: rgba(209, 250, 229, 0.95);
}
.finale-summary-block--practice > .finale-summary-block-text {
  color: rgba(254, 249, 231, 0.9);
}
.finale-summary-block--practice > .finale-summary-block-text strong {
  color: rgba(253, 224, 71, 0.95);
}

.finale-summary-block--improvement {
  border-color: rgba(129, 140, 248, 0.45);
  background: rgba(99, 102, 241, 0.09);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.08) inset;
}
.finale-summary-block--improvement .finale-summary-block-label {
  color: rgba(199, 210, 254, 0.98);
}
.finale-practice-ol--improvement {
  color: rgba(224, 231, 255, 0.92);
}
.finale-practice-ol--improvement li::marker {
  color: rgba(165, 180, 252, 0.95);
}
.finale-improvement-total {
  margin: 18px 0 0;
  padding: 14px 16px 16px;
  border-left: 3px solid rgba(129, 140, 248, 0.75);
  background: rgba(15, 23, 42, 0.45);
  border-radius: 0 10px 10px 0;
}
.finale-improvement-total-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(199, 210, 254, 0.95);
  margin-bottom: 10px;
}
.finale-improvement-total-label::before {
  content: '';
  color: rgba(165, 180, 252, 0.9);
  font-weight: 900;
}
.finale-improvement-total-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(226, 232, 240, 0.9);
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.finale-improvement-loading {
  padding: 8px 0 4px;
}
.finale-improvement-loading-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  overflow: hidden;
  margin-bottom: 12px;
}
.finale-improvement-loading-fill {
  height: 100%;
  width: 40%;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.3), rgba(165, 180, 252, 0.95), rgba(129, 140, 248, 0.3));
  animation: finale-improvement-slide 1.3s ease-in-out infinite;
}
@keyframes finale-improvement-slide {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(280%); }
}
.finale-improvement-loading-text {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(199, 210, 254, 0.75);
  line-height: 1.5;
}

.finale-risk-chips {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.finale-risk-chips li span {
  display: inline-block;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 69, 90, 0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  color: rgba(240, 244, 255, 0.88);
  line-height: 1.35;
}
/* Research Papers */
#papers-section { display: none; }
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.paper-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.paper-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.paper-year {
  background: var(--rose-dim);
  color: var(--rose);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}
.paper-journal {
  font-size: 0.75rem;
  color: var(--text3);
  font-style: italic;
}
.paper-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}
.paper-authors {
  font-size: 0.8rem;
  color: var(--text3);
  margin-bottom: 12px;
}
.paper-findings {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}
.findings-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 8px;
}
.paper-findings ul li {
  font-size: 0.8rem;
  color: var(--text2);
  padding: 4px 0;
  padding-left: 12px;
  position: relative;
  line-height: 1.5;
}
.paper-findings ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--rose);
}
.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose);
  border: 1px solid var(--rose-dim);
  padding: 4px 12px;
  border-radius: 50px;
  transition: var(--transition);
}
.paper-link:hover { background: var(--rose-dim); }

/* ── Scenario Us Modal (confirm 대체) ─────────────── */
.su-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.su-modal[hidden] {
  display: none !important;
}
.su-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(6px);
}
.su-modal-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(165deg, var(--bg3) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(232, 69, 90, 0.08);
  animation: suModalIn 0.28s ease;
}
@keyframes suModalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.su-modal-brand {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin: 0 0 10px;
}
.su-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 12px;
  color: var(--text);
}
.su-modal-message {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text2);
  margin: 0 0 20px;
  white-space: pre-line;
}
.su-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.su-modal-actions--single {
  justify-content: stretch;
}
.su-modal-actions--single .su-modal-btn {
  flex: 1;
}
.su-modal-btn {
  min-width: 96px;
  padding: 11px 16px;
  font-size: 0.88rem;
}
body.su-modal-open {
  overflow: hidden;
}

/* ── Toast ──────────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE · Mobile
   ════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }

  .level-card { grid-template-columns: 48px 1fr; }
  .level-meta { display: none; }

  .sw-grid { grid-template-columns: 1fr; }

  .birth-date-row { grid-template-columns: 1fr 1fr; }
  .birth-date-row select:last-child { grid-column: 1 / -1; }

  .answer-options-inline { gap: 4px; }
  .answer-btn-inline.scale-ans--0,
  .answer-btn-inline.scale-ans--3 { width: 32px; height: 32px; }
  .answer-btn-inline.scale-ans--1,
  .answer-btn-inline.scale-ans--2 { width: 30px; height: 30px; }
  .scale-label-left, .scale-label-right { font-size: 0.62rem; }

  .overall-health-card { padding: 16px 20px; gap: 16px; }
  .health-status-text { font-size: 0.8rem; }
  .health-info { text-align: center; }
  .health-status-text { max-width: 100%; }

  .match-card { flex-wrap: wrap; }
  .match-badge { margin-left: 0; }

  .papers-grid { grid-template-columns: 1fr; }

  .survey-nav { flex-wrap: wrap; }
  .survey-nav .btn { flex: 1; }

  .result-hero-actions { flex-direction: column; align-items: center; }

  /* 모바일에서 캐릭터 + 텍스트 세로 배치 */
  .result-hero-identity {
    flex-direction: column;
    gap: 20px;
  }
  .result-type-text {
    align-items: center;
  }
  .result-type-code,
  .result-type-name {
    text-align: center;
  }
  .result-tagline {
    text-align: center;
  }
  .character-card { width: 200px; height: 200px; }
  .character-img  { width: 200px; height: 200px; }

  #toast { bottom: 16px; font-size: 0.8rem; max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
}

@media (max-width: 400px) {
  .level-card { padding: 14px 16px; }
  .question-item { padding: 16px; }
  .survey-scale-header { display: none; }
  .result-type-code { letter-spacing: 0.1em; }
  .character-card { width: 160px; height: 160px; }
  .character-img  { width: 160px; height: 160px; }
}
@media (max-width: 768px) {
  #screen-landing .landing-content {
    max-width: min(700px, calc(100vw - 20px));
  }
  .landing-manifesto {
    padding: 16px 14px;
  }
  .landing-stats {
    gap: 24px;
    margin-top: 40px;
    padding-top: 28px;
  }
}

/* ── 관계 리스크 리포트 (수정.txt) ───────────────────────────── */
.screen-result-report {
  padding-top: clamp(8px, 2vw, 16px);
  padding-bottom: 40px;
}
.result-report-wrap {
  max-width: min(1240px, 98vw);
  width: 100%;
  margin: 0 auto;
  padding: clamp(12px, 2.5vw, 28px) clamp(12px, 2vw, 24px) 56px;
}
.report-page-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: clamp(1.4rem, 3.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #c9a227;
  text-shadow: 0 0 28px rgba(201, 162, 39, 0.18);
}
.report-hero-explain {
  margin: 2px 0 0;
  line-height: 1.45;
  color: var(--text2);
}
.report-title-15pt {
  font-size: 15pt;
  font-weight: 700;
  line-height: 1.35;
}
.report-body-11pt {
  font-size: 12pt;
  line-height: 1.55;
}
.report-prose.report-body-11pt,
p.report-body-11pt {
  font-size: 12pt;
}
.report-summary-stack-ol {
  margin: 0;
  padding-left: 1.25em;
}
.insight-number--ref {
  background: rgba(201, 162, 39, 0.22) !important;
  color: #e8d48b !important;
  font-size: 0.72rem;
  font-weight: 700;
}
.report-summary-stack.report-ten-second-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  width: 100%;
}
@media (max-width: 960px) {
  .report-summary-stack.report-ten-second-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
  .report-summary-stack.report-ten-second-grid .report-qs-card {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: none;
  }
}
.report-doc-header {
  text-align: center;
  padding: 24px 0 16px;
  width: 100%;
}
.report-doc-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.report-doc-title--fit-one-line,
.report-doc-lead--fit-one-line {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  line-height: 1.35;
  text-align: center;
}
.report-doc-title--fit-one-line {
  font-size: clamp(0.78rem, 2.8vw, 1.55rem);
  padding-bottom: 2px;
}
.report-doc-lead--fit-one-line {
  font-size: clamp(0.62rem, 1.65vw, 1.02rem);
  color: var(--text2);
  font-weight: 500;
}
.report-doc-lead {
  margin: 0 auto;
  max-width: none;
  font-size: 0.92rem;
  color: var(--text2);
}
.report-top-band {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 28px) clamp(14px, 2vw, 22px) clamp(20px, 3vw, 28px);
  margin-bottom: clamp(12px, 2vw, 20px);
}
.report-top-band--stacked {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: clamp(8px, 2vw, 16px);
}
.report-top-band--stacked .report-page-title {
  margin-top: 0;
  margin-bottom: clamp(16px, 3vw, 24px);
}
.report-summary-stack.report-ten-second-grid {
  margin-bottom: clamp(14px, 2.5vw, 22px);
}
.report-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: clamp(10px, 2vw, 16px);
  margin-bottom: clamp(22px, 4vw, 40px);
}
.report-sections {
  display: flex;
  flex-direction: column;
  margin-top: clamp(20px, 3.5vw, 36px);
  gap: 14px;
}
/* 결과 화면: 상단 요약 카드(밴드 안)와 같은 가로 폭·정렬로 접이식 3개 맞춤 */
.screen-result-report .result-sections.report-sections {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(14px, 2vw, 22px);
  padding-right: clamp(14px, 2vw, 22px);
  box-sizing: border-box;
}
.report-details.report-master-bundle {
  background: transparent;
  border: none;
  padding: 0;
}
.report-master-summary {
  list-style: none;
  cursor: pointer;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 15pt;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.35;
}
.report-master-summary::-webkit-details-marker {
  display: none;
}
.report-master-summary::after {
  content: '▼';
  float: right;
  font-size: 0.65em;
  opacity: 0.55;
  margin-top: 0.35em;
}
.report-master-bundle[open] > .report-master-summary::after {
  content: '▲';
}
.report-master-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 8px;
}
.report-master-section {
  margin: 0;
}
.report-master-section--split {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.report-master-section .report-bundle-text {
  margin: 0;
  color: var(--text2);
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 12pt;
}
.report-advice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.report-advice-head .insight-plain-title {
  margin: 0;
}
.report-advice-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.report-advice-solution-list {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}
.report-advice-solution-list li {
  margin-bottom: 6px;
}
.report-master-body > .insight-card--plain {
  margin-bottom: 0;
}
.report-master-body > .insight-card--plain#report-custom-advice {
  width: 100%;
  box-sizing: border-box;
}
.report-insights-stack {
  gap: 12px;
}
.report-insights-stack > .insight-card--plain {
  width: 100%;
  box-sizing: border-box;
}
.report-analysis-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.report-analysis-hub-title {
  margin: 4px 0 2px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.report-analysis-block {
  margin-bottom: 0;
}
.report-analysis-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.report-analysis-summary > .insight-plain-title {
  margin-bottom: 12px;
}
.report-analysis-summary-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.report-analysis-summary-section:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}
.report-analysis-summary-section--types {
  padding-bottom: 4px;
}
.report-analysis-risk-hub {
  margin-top: 12px;
}
.report-analysis-risk-hub .report-analysis-risk-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.report-analysis-risk-hub .report-analysis-risk-section:first-of-type {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}
.report-analysis-subtitle {
  margin: 0 0 8px;
  font-size: 12pt;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.report-analysis-prose .report-bundle-text {
  margin: 0 0 10px;
}
.report-analysis-prose .report-bundle-text:last-child {
  margin-bottom: 0;
}
.report-analysis-risk-section--mitigate {
  background: rgba(34, 197, 94, 0.08);
  margin-left: -8px;
  margin-right: -8px;
  padding: 12px 8px !important;
  border-radius: 10px;
  border-top-color: rgba(74, 222, 128, 0.2) !important;
}
.report-analysis-risk-section--reflect {
  background: rgba(250, 204, 21, 0.1);
  margin-left: -8px;
  margin-right: -8px;
  padding: 12px 8px !important;
  border-radius: 10px;
  border-top-color: rgba(250, 204, 21, 0.25) !important;
}
.report-bundle-lead {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
}
.report-bundle-text {
  margin: 0;
  color: var(--text2);
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 12pt;
}
.report-bundle-ol {
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  list-style: decimal;
}
.report-bundle-ol li {
  margin: 0 0 6px;
  line-height: 1.55;
}
/* 보고서 본문 — 조정 전략 목록(행동 + 스스로에게 묻기 줄별) */
#report-bundle-adjust li {
  white-space: normal;
}
.report-bundle-subline {
  margin: 14px 0 8px;
  color: rgba(255, 255, 255, 0.92);
}
.report-bundle-quote {
  margin: 0;
}
/* 보고서 본문 — 지금 필요한 조정 전략 카드(연한 초록) + 대화 예시(구분 톤) */
.insight-card.report-bundle-card--adjust.insight-card--plain {
  background: rgba(34, 197, 94, 0.11);
  border-color: rgba(74, 222, 128, 0.32);
}
.screen-result-report .report-quote.report-bundle-quote--dialog {
  border: 1px solid rgba(74, 222, 128, 0.38);
  border-left: 4px solid #4ade80;
  background: rgba(34, 197, 94, 0.18);
  border-radius: 10px;
  color: var(--text);
}
.report-hero-card {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px 16px 20px;
  margin-bottom: 16px;
}
.report-hero-card--two-col {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 20px;
  background: rgba(15, 20, 34, 0.65);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .report-hero-card--two-col {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 16px;
  }
}
.report-hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.report-stage-sub-badge {
  font-size: 0.78rem;
  color: var(--text2);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.report-hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}
@media (max-width: 640px) {
  .report-hero-right {
    align-items: center;
    text-align: center;
  }
}
.report-hero-right .report-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--rose), #c2304a);
  color: #fff;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
}
.report-hero-right .report-hero-official-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 2px 0;
}
.report-hero-right .report-hero-nickname-sub {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}
.report-hero-right .report-hero-one-line {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.55;
  margin: 0;
}
.report-hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}
.report-hero-centered .character-card--report {
  margin-bottom: 4px;
}
.report-identity-text--hero {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.report-signal-list,
.report-signal-list li {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 12pt !important;
  line-height: 1.55;
}
.report-signal-list {
  list-style: decimal;
  text-align: left;
  padding-left: 1.35rem;
}
.insight-card--plain {
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}
/* 리스크 분석 보고서 — 좌측 악센트 색 */
.insight-card.report-card--stage::before,
.insight-card.report-card--extra::before {
  background: rgba(255, 255, 255, 0.92);
}
.insight-card.report-analysis-summary::before {
  background: linear-gradient(180deg, #c4b5fd 0%, #7c3aed 100%);
}
.insight-card.report-card--advice {
  border: 1px solid rgba(45, 212, 191, 0.38);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.12),
    0 0 16px rgba(6, 182, 212, 0.18),
    0 0 28px rgba(14, 116, 144, 0.1);
}
.insight-card.report-card--advice::before {
  background: #2dd4bf;
}
.insight-card--plain:last-child {
  margin-bottom: 0;
}
.insight-plain-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
}
.insight-plain-body {
  margin: 0;
  color: var(--text2);
}
.insight-plain-body.report-body-11pt {
  font-size: 12pt;
  line-height: 1.55;
}
.report-identity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.character-card--report {
  flex-shrink: 0;
}
.report-identity-text {
  flex: 1;
  min-width: min(100%, 280px);
}
.report-hero-nickname {
  margin: 0 0 6px;
  font-size: clamp(1.65rem, 5.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
.report-identity-text--hero .report-hero-nickname {
  margin-bottom: 4px;
}
.report-hero-official-name {
  margin: 0 0 10px;
  font-size: clamp(0.95rem, 2.1vw, 1.12rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}
.report-identity-text--hero .report-hero-official-name {
  margin-bottom: 12px;
}
.report-microcopy {
  margin: 0;
  font-size: clamp(0.84rem, 1.8vw, 0.95rem);
  line-height: 1.55;
  color: var(--text2);
}
.report-ten-second-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  width: 100%;
  align-items: stretch;
}
@media (max-width: 960px) {
  .report-ten-second-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .report-ten-second-grid .report-qs-card {
    flex: 0 0 min(42vw, 220px);
    min-width: min(42vw, 220px);
    scroll-snap-align: start;
  }
}
@media (max-width: 560px) {
  .report-identity-row { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; }
}
.report-qs-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 10px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.report-qs-card-title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text2);
  text-transform: none;
  line-height: 1.35;
}
@media (min-width: 1100px) {
  .report-qs-card-title { font-size: 0.72rem; }
}
.report-qs-card-body {
  margin: 0;
  flex: 1;
  font-size: clamp(0.74rem, 1.45vw, 0.86rem);
  line-height: 1.5;
  color: var(--text);
}
.report-qs-card-title.report-title-15pt {
  font-size: 15pt;
  color: var(--text);
}
.report-qs-card-body.report-body-11pt {
  font-size: 12pt;
  line-height: 1.55;
}
.report-qs-prose {
  margin: 0;
  line-height: 1.65;
  color: var(--text);
  word-break: keep-all;
}
/* 요약 그리드: 리스크(연한 붉은) / 조정(연한 초록) */
.report-qs-card--risk-soft {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}
.report-qs-card--adjust-soft {
  background: rgba(34, 197, 94, 0.11);
  border-color: rgba(74, 222, 128, 0.32);
}
.report-qs-card--state {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.report-qs-card--reflect-yellow {
  background: rgba(244, 200, 66, 0.16);
  border-color: rgba(244, 200, 66, 0.42);
}
.report-qs-card--mitigate {
  background: rgba(34, 197, 94, 0.11);
  border-color: rgba(74, 222, 128, 0.32);
}
/* 10초 요약 — 세로 스택(현재 상태 + 리스크 포인트 묶음) */
.report-ten-second-grid--summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: visible;
  padding-bottom: 0;
}
.report-ten-second-grid--summary .report-qs-card,
.report-ten-second-grid--summary .report-qs-group {
  flex: none;
  min-width: 0;
  width: 100%;
  scroll-snap-align: none;
}
.report-qs-group--risk-hub {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 14px;
  padding: 14px 12px 12px;
}
.report-qs-group-title {
  margin: 0 0 12px;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.report-qs-group-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-qs-group-inner--stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 720px) {
  .report-qs-group-inner:not(.report-qs-group-inner--stack) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
.report-qs-bullets {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
  color: var(--text);
}
.report-qs-bullets li {
  margin: 0 0 0.55em;
  line-height: 1.5;
}
.report-qs-bullets li:last-child {
  margin-bottom: 0;
}
.report-reflect-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.report-reflect-lines li {
  position: relative;
  padding-left: 0.95rem;
  margin: 0 0 0.65em;
  line-height: 1.55;
  color: var(--text);
}
.report-reflect-lines li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #a5b4fc;
  font-weight: 700;
}
.report-reflect-lines li:last-child {
  margin-bottom: 0;
}
#report-bundle-adjust .report-bundle-reflect-title {
  list-style: none;
  margin-top: 10px;
  font-weight: 700;
  color: #c7d2fe;
  white-space: normal;
}
#report-bundle-adjust .report-bundle-reflect-line {
  list-style: none;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(129, 140, 248, 0.35);
  white-space: normal;
}
.report-qs-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text2);
}
.report-disclaimer {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text2);
  opacity: 0.9;
  margin: clamp(10px, 2vw, 18px) 0 clamp(14px, 2vw, 20px);
}
.report-disclaimer.report-body-11pt {
  font-size: 12pt;
  line-height: 1.55;
}
.report-details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 4px 8px;
}
.report-details-summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15pt;
  padding: 12px 14px;
  list-style: none;
  color: var(--text);
}
.report-details-summary::-webkit-details-marker { display: none; }
.report-details-body {
  padding: 0 14px 12px;
}
/* 결과 화면: 접이식 박스 가로 = 상단 요약 카드(밴드 내부)와 동일, 요약에 ▼/▲ */
.screen-result-report .result-sections > .report-details:not(.report-master-bundle) {
  width: 100%;
  padding: 4px 0 8px;
  border-radius: 12px;
}
.screen-result-report .result-sections .report-details > .report-details-summary {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px;
}
.screen-result-report .result-sections .report-details > .report-details-summary::after {
  content: '▼';
  float: right;
  font-size: 0.65em;
  opacity: 0.55;
  margin-top: 0.35em;
}
.screen-result-report .result-sections .report-details[open] > .report-details-summary::after {
  content: '▲';
}
.report-muted {
  font-size: 0.82rem;
  color: var(--text2);
  margin: 0 0 8px;
}
.report-muted.report-body-11pt {
  font-size: 12pt;
  line-height: 1.55;
}
.report-prose {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text2);
  white-space: pre-wrap;
}
.report-stage-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 15pt;
  color: var(--text);
}
.report-bullet-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text2);
}
.report-numbered-list {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text2);
}
.report-example-label {
  margin: 8px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text2);
}
.report-quote {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(129, 140, 248, 0.55);
  background: rgba(99, 102, 241, 0.08);
  border-radius: 0 10px 10px 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text);
}
.report-quote.report-body-11pt {
  font-size: 12pt;
  line-height: 1.55;
}
.report-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .report-two-col { grid-template-columns: 1fr; }
}
.report-secondary-head {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.report-nickname-inline {
  font-weight: 500;
  color: var(--text2);
  font-size: 0.88rem;
}
.report-details-body #insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 추가 인사이트·맞춤형 제언 — 리스크 분석 보고서와 동일 폭·헤더, 내부 중첩 카드 없음 */
.screen-result-report .result-sections > .report-details.report-master-bundle + .report-details.report-master-bundle {
  margin-top: 4px;
}
.report-couple-cta {
  text-align: center;
  padding: 24px 18px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(129, 140, 248, 0.25);
}
.report-couple-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
}
.report-couple-lead {
  margin: 0 auto 8px;
  max-width: 480px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.report-couple-sub {
  margin: 0 auto 16px;
  max-width: 480px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text2);
}
#btn-result-couple-cta {
  min-width: 240px;
}

/* ── Global Header Navigation ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 20px;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-menu-btn {
  display: none;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.25rem;
  padding: 6px 12px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}
.mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-brand .brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.header-brand .brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 20px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link:hover {
  color: var(--rose);
  background: var(--rose-dim);
}
@media (max-width: 768px) {
  .site-header {
    padding: 10px 16px;
  }
  .header-brand .brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
  }
  .header-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ── Mobile Slide-over Nav Drawer ────────────────────── */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
}
.mobile-nav-drawer[hidden] {
  display: none !important;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 54, 63, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-nav-panel {
  position: relative;
  z-index: 2;
  width: 290px;
  max-width: 82vw;
  height: 100%;
  background: rgba(253, 251, 247, 0.96);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-drawer-close {
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 1.25rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}
.mobile-drawer-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.mobile-drawer-body {
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  gap: 12px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.mobile-drawer-link:hover,
.mobile-drawer-link:active {
  background: rgba(232, 69, 90, 0.15);
  border-color: rgba(232, 69, 90, 0.4);
  color: var(--rose-light);
}

/* ── Landing Preview Chips ───────────────────────────── */
/* ── Landing Preview Chips ───────────────────────────── */
.landing-features-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 36px auto 28px;
}
.preview-chip {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  word-break: keep-all;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.preview-chip:hover {
  background: #FFFFFF;
  border-color: rgba(217, 83, 111, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217, 83, 111, 0.1);
}
.preview-chip .chip-title {
  display: block;
  font-size: clamp(0.88rem, 2.5vw, 0.96rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  word-break: keep-all;
}
.preview-chip .chip-desc {
  display: block;
  font-size: clamp(0.78rem, 2vw, 0.85rem);
  color: var(--text2);
  word-break: keep-all;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .landing-features-preview {
    width: 100%;
    padding: 0 12px;
    margin: 28px auto 20px;
    gap: 10px;
  }
  .preview-chip {
    padding: 14px 16px;
  }
}

/* ── 10초 요약 카드 그리드 ────────────────────────────── */
.report-header-area {
  text-align: center;
  margin-bottom: 24px;
}
.report-header-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--rose-dim);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.report-header-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.report-header-subtitle {
  font-size: 0.92rem;
  color: var(--text2);
}

.report-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--rose), #C84660);
  color: #fff;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.report-hero-nickname-sub {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.report-hero-one-line {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.5;
  margin-top: 4px;
}

.report-10sec-wrapper {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 22px;
  margin: 20px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}
.report-10sec-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.report-10sec-title-row h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.report-10sec-title-row .ten-sec-sub {
  font-size: 0.78rem;
  color: var(--text3);
}

.ten-sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .ten-sec-grid {
    grid-template-columns: 1fr;
  }
}
.ten-sec-card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.ten-sec-card--primary {
  border-color: rgba(217, 83, 111, 0.3);
  background: linear-gradient(135deg, rgba(217, 83, 111, 0.06), #FFFFFF);
}
.ten-sec-card--warning {
  border-color: rgba(230, 126, 34, 0.3);
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.06), #FFFFFF);
}
.ten-sec-card--risky {
  border-color: rgba(200, 150, 62, 0.3);
  background: linear-gradient(135deg, rgba(200, 150, 62, 0.06), #FFFFFF);
}
.ten-sec-card--strategy {
  border-color: rgba(39, 174, 96, 0.3);
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.06), #FFFFFF);
}

.ten-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text2);
}
.ten-sec-card--primary .ten-sec-badge { color: var(--rose-light); }
.ten-sec-card--warning .ten-sec-badge { color: #fb923c; }
.ten-sec-card--risky .ten-sec-badge { color: var(--gold); }
.ten-sec-card--strategy .ten-sec-badge { color: #4ade80; }

.ten-sec-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.ten-sec-body {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
}
.ten-sec-list {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.84rem;
  color: var(--text2);
}
.ten-sec-list li {
  margin-bottom: 4px;
}

/* ── 4. 보조 리스크 카드 ─────────────────────────────── */
.secondary-risk-badge-label {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #818cf8;
  margin-bottom: 8px;
}

/* ── 9. 분석 신뢰도 카드 ─────────────────────────────── */
.reliability-card-container {
  margin: 24px 0;
}
.reliability-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reliability-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.reliability-title-text {
  color: var(--text);
}
#reliability-level-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}
.reliability-card.level-high #reliability-level-badge {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}
.reliability-card.level-medium #reliability-level-badge {
  background: rgba(244, 200, 66, 0.15);
  color: var(--gold);
}
.reliability-card.level-low #reliability-level-badge {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}
.reliability-desc {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}

/* ── 10. 커플 CTA 배너 ───────────────────────────────── */
.couple-cta-banner {
  margin: 32px 0 24px;
  background: linear-gradient(135deg, rgba(232,69,90,0.15), rgba(99,102,241,0.15));
  border: 1px solid rgba(232, 69, 90, 0.3);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.couple-cta-inner {
  max-width: 820px;
  margin: 0 auto;
}
.couple-cta-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--rose-dim);
  color: var(--rose-light);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.couple-cta-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
  word-break: keep-all;
}
.couple-cta-desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 20px;
  word-break: keep-all;
  white-space: nowrap;
}
.couple-share-embedded {
  text-align: center;
  width: 100%;
}
.couple-share-embedded .share-desc {
  font-size: 0.88rem;
  color: var(--text2);
  margin: 0 auto 12px;
  max-width: 100%;
  width: 100%;
  display: block;
  text-align: center;
  word-break: keep-all;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .couple-cta-desc,
  .couple-share-embedded .share-desc {
    white-space: normal;
  }
}
.couple-cta-btn {
  width: 100%;
  max-width: 320px;
}

/* ── Info Content Modals ─────────────────────────────── */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.info-modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}
.info-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.info-modal-panel--large {
  max-width: 840px;
}
.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.info-modal-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.info-modal-close {
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.info-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}
.info-modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text2);
}
.info-modal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.info-modal-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rose-light);
  margin: 20px 0 8px;
}
.info-modal-body p {
  margin-bottom: 14px;
}
.info-modal-body ul {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  list-style: disc;
}
.info-modal-body li {
  margin-bottom: 6px;
}

/* 8대 리스크 백과 1열 행별 목록 카드 */
.guide-intro-lead {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}
.risk-article-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.risk-article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px 20px;
}
.risk-article-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.risk-article-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.risk-article-card p {
  font-size: 0.84rem;
  color: var(--text2);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* FAQ 아코디언 */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
}
.faq-answer p {
  margin: 0;
}

/* ── Enhanced Global Footer ───────────────────────────── */
.app-footer {
  position: relative;
  z-index: 50;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  pointer-events: auto;
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.footer-link {
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact,
.footer-contact a {
  font-size: 0.8rem;
  color: var(--text2);
}
.footer-contact a:hover {
  color: var(--gold);
}
.footer-copyright {
  font-size: 0.75rem;
  color: var(--text3);
}

/* ── 연애 칼럼 매거진 (1열 행별 리스트) ───────────────────── */
.column-card-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.column-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rose);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}
.column-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(232, 69, 90, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.column-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text3);
  margin-bottom: 8px;
}
.column-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--rose-dim);
  color: var(--rose-light);
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
}
.column-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.column-card-summary {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.column-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.column-tag {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  background: rgba(244, 200, 66, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

/* 칼럼 상세 뷰 */
.column-detail-view {
  color: var(--text);
}
.column-detail-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.column-detail-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.column-detail-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}
.column-detail-sub {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.column-detail-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text2);
}
.column-detail-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
  border-left: 3px solid var(--rose);
  padding-left: 10px;
}
.column-detail-body p {
  margin-bottom: 16px;
}

/* ── 결과지 맞춤 추천 칼럼 밴드 ───────────────────────────── */
.report-recommended-section {
  margin: 32px 0;
  background: rgba(15, 20, 34, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.report-recommended-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.recommended-column-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: var(--transition);
}
.recommended-column-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 200, 66, 0.5);
  transform: translateY(-2px);
}

/* ── Selection ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

::selection { background: var(--rose-dim); color: var(--rose-light); }

/* ── Mobile Global Responsive Optimization (<= 768px & <= 480px) ───── */
@media (max-width: 768px) {
  /* Containers & Padding */
  .container, .container-wide {
    padding: 0 14px;
  }
  
  /* Landing Typography & Spacing */
  .landing-title {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem) !important;
    word-break: keep-all;
    line-height: 1.35;
  }
  .landing-manifesto p {
    font-size: clamp(0.88rem, 2.8vw, 0.98rem);
    word-break: keep-all;
    line-height: 1.5;
  }
  .landing-cta .btn-large {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
  }

  /* Form & Entry Choices */
  .entry-actions {
    width: 100%;
    gap: 12px;
  }
  .entry-choice {
    width: 100%;
    min-height: 50px;
  }
  .radio-group {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .radio-card {
    min-height: 48px;
    padding: 12px 14px;
  }

  /* Survey Option Buttons */
  .survey-option-btn {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 0.92rem;
    word-break: keep-all;
    line-height: 1.45;
  }

  /* Result Hero Card & Action Buttons */
  .report-hero-card--two-col {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    padding: 20px 14px !important;
    gap: 14px !important;
  }
  .report-hero-left {
    width: 100% !important;
    align-items: center !important;
  }
  .report-hero-right {
    width: 100% !important;
    align-items: center !important;
    text-align: center !important;
    word-break: keep-all !important;
  }
  .report-hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .report-hero-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
  }

  /* Recommended Section & Column Cards */
  .report-recommended-section {
    padding: 18px 14px;
    margin: 20px 0;
  }
  .column-card {
    padding: 14px 16px;
  }
  .column-card-title {
    font-size: 0.95rem;
    word-break: keep-all;
  }
  .column-card-summary {
    font-size: 0.82rem;
    word-break: keep-all;
  }
  .column-detail-title {
    font-size: 1.15rem;
    word-break: keep-all;
  }
  .column-detail-body {
    font-size: 0.9rem;
    line-height: 1.7;
    word-break: keep-all;
  }

  /* Modals */
  .info-modal {
    padding: 10px;
  }
  .info-modal-panel {
    max-height: 90vh;
    border-radius: 16px;
  }
  .info-modal-header {
    padding: 14px 16px;
  }
  .info-modal-header h2 {
    font-size: 1.05rem;
    word-break: keep-all;
  }
  .info-modal-body {
    padding: 16px 14px;
    font-size: 0.88rem;
    word-break: keep-all;
  }

  /* Footer */
  .app-footer {
    padding: 24px 14px;
  }
  .footer-links {
    gap: 12px;
  }
  .footer-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .header-brand .brand-name {
    font-size: 0.88rem;
  }
  .nav-link {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  .preview-chip .chip-title {
    font-size: 0.85rem;
  }
  .preview-chip .chip-desc {
    font-size: 0.76rem;
  }
}

/* ════════════════════════════════════════════════════════
   APPLE-STYLE EDITORIAL MAGAZINE & 40+ COLUMNS SECTION
   ════════════════════════════════════════════════════════ */
.landing-magazine-section {
  width: 100%;
  max-width: 1080px;
  margin: 60px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

.magazine-header {
  text-align: center;
  margin-bottom: 32px;
}
.magazine-badge {
  display: inline-block;
  padding: 5px 16px;
  background: var(--rose-dim);
  border: 1px solid rgba(217, 83, 111, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.magazine-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.magazine-subtitle {
  font-size: 1rem;
  color: var(--text2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 카테고리 탭 (Filter Tabs) */
.magazine-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab-btn {
  padding: 8px 18px;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.tab-btn:hover {
  background: var(--bg2);
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.15);
}
.tab-btn.active {
  background: var(--rose);
  color: #FFFFFF;
  border-color: var(--rose);
  box-shadow: 0 4px 14px rgba(217, 83, 111, 0.3);
}

/* 40+ 칼럼 매거진 그리드 */
.magazine-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.magazine-card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.magazine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
  border-color: rgba(217, 83, 111, 0.3);
}
.magazine-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.magazine-card-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose);
  background: var(--rose-dim);
  padding: 4px 10px;
  border-radius: 20px;
}
.magazine-card-readtime {
  font-size: 0.78rem;
  color: var(--text3);
  font-weight: 500;
}
.magazine-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.magazine-card-desc {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.magazine-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.8rem;
  color: var(--text3);
}
.magazine-card-author {
  font-weight: 600;
  color: var(--text2);
}
.magazine-card-more {
  font-weight: 700;
  color: var(--rose);
}

/* 칼럼 본문 모달 및 리더 양식 */
.column-detail-view {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}
.column-detail-view h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.column-detail-view .detail-subtitle {
  font-size: 1.05rem;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 20px;
}
.column-detail-view .detail-meta-bar {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text3);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}
.column-detail-view p {
  margin-bottom: 18px;
  color: var(--text2);
}
.column-detail-view .quote-box {
  background: var(--bg2);
  border-left: 4px solid var(--rose);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0;
}
.column-detail-view .action-tips-box {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.column-detail-view .action-tips-box h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 12px;
}
.column-detail-view .action-tips-box ul {
  padding-left: 1.2rem;
  margin: 0;
}
.column-detail-view .action-tips-box li {
  margin-bottom: 8px;
  color: var(--text2);
}
