/* =========================================================
   쪼아 연애 밸런스 게임 (lbalance.css)
   ========================================================= */

:root{
  --lb-bg: #f6f7fb;
  --lb-card: #ffffff;
  --lb-card-soft: #fafbff;
  --lb-text: #1f2430;
  --lb-muted: #666f80;
  --lb-border: #e6e9f2;

  --lb-primary: #e64191;   /* 핑크 */
  --lb-primary-dark: #c82f79;
  --lb-secondary: #6d5ef7; /* 퍼플 */
  --lb-accent: #ff7a18;    /* 오렌지 */
  --lb-success: #16a34a;
  --lb-warning: #ef4444;
  --lb-info: #2563eb;

  --lb-shadow: 0 10px 28px rgba(25, 35, 65, .08);
  --lb-radius-xl: 22px;
  --lb-radius-lg: 16px;
  --lb-radius-md: 12px;
  --lb-radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  background: var(--lb-bg);
  color: var(--lb-text);
  line-height: 1.5;
  word-break: keep-all;
}

.lb-wrap {
  width: 100%;
  padding: 20px 12px 40px;
}

.lb-container {
  max-width: 980px;
  margin: 0 auto;
}

/* =========================================================
   타이틀 박스
   ========================================================= */
.lb-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 40%),
    linear-gradient(135deg, #ea4f9a 0%, #d8307f 42%, #b81e66 100%);
  color: #fff;
  border-radius: var(--lb-radius-xl);
  box-shadow: var(--lb-shadow);
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.lb-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.lb-hero__title {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.lb-hero__desc {
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}

.lb-hero__actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =========================================================
   버튼
   ========================================================= */
.lb-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.lb-btn:hover { transform: translateY(-1px); }
.lb-btn:active { transform: translateY(0); }
.lb-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.lb-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--lb-accent), #ff5d0d);
  box-shadow: 0 8px 16px rgba(255,122,24,.25);
}
.lb-btn--ghost {
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
}
.lb-btn--subtle {
  color: var(--lb-primary-dark);
  background: #fff0f7;
  border: 1px solid #ffd6ea;
}

.lb-toolbar + .lb-panel { margin-top: 12px; }

/* =========================================================
   툴바
   ========================================================= */
.lb-toolbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.lb-tool-item {
  background: var(--lb-card);
  border: 1px solid var(--lb-border);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.03);
}
.lb-tool-icon { display:block; font-size: 18px; margin-bottom: 4px; }
.lb-tool-text {
  display:block;
  font-size: 11px;
  color: var(--lb-muted);
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================================
   패널
   ========================================================= */
.lb-panel {
  background: transparent;
}

.lb-panel__header {
  background: var(--lb-card);
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius-lg);
  padding: 14px;
  box-shadow: 0 4px 18px rgba(25,35,65,.04);
  margin-bottom: 10px;
}
.lb-panel__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.lb-panel__sub {
  margin: 0;
  color: var(--lb-muted);
  font-size: 13px;
}

.lb-intro-card {
  background: linear-gradient(135deg, #fff6fb 0%, #f8f5ff 100%);
  border: 1px solid #f0d9e8;
  border-radius: var(--lb-radius-lg);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.lb-intro-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px;
  background: #fff;
  border: 1px solid #f6dbe8;
  flex: 0 0 44px;
}
.lb-intro-card__body h3 {
  margin: 2px 0 6px;
  font-size: 15px;
}
.lb-intro-card__body ul {
  margin: 0;
  padding-left: 16px;
  color: var(--lb-muted);
  font-size: 13px;
}
.lb-intro-card__body li + li { margin-top: 4px; }

.is-hidden { display: none !important; }

/* =========================================================
   진행률
   ========================================================= */
.lb-progress-wrap {
  margin: 10px 0 12px;
  background: var(--lb-card);
  border: 1px solid var(--lb-border);
  border-radius: 14px;
  padding: 10px;
}
.lb-progress-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 8px;
  margin-bottom: 8px;
}
.lb-progress-text,
.lb-progress-percent {
  font-size: 12px;
  font-weight: 800;
  color: var(--lb-muted);
}
.lb-progress-bar {
  width: 100%;
  height: 10px;
  background: #eceff5;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.lb-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7ab4 0%, #e64191 50%, #bd2c74 100%);
  transition: width .25s ease;
}

/* =========================================================
   질문 카드
   ========================================================= */
.lb-question-card {
  background: var(--lb-card);
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius-lg);
  padding: 14px;
  box-shadow: 0 6px 20px rgba(25,35,65,.04);
}
.lb-question-meta {
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lb-chip {
  display:inline-flex;
  align-items:center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--lb-secondary), #8f7dff);
}
.lb-chip--soft {
  color: #6d5ef7;
  background: #f1efff;
  border: 1px solid #e3e0ff;
}
.lb-question-title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.lb-question-guide {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--lb-muted);
}

.lb-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lb-option {
  border: 2px solid #e8ebf2;
  background: #fff;
  border-radius: 16px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
  min-height: 132px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.lb-option:hover {
  border-color: #ffd2e8;
  box-shadow: 0 8px 18px rgba(230,65,145,.08);
  transform: translateY(-2px);
}
.lb-option.is-selected {
  border-color: var(--lb-primary);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 100%);
  box-shadow: 0 10px 20px rgba(230,65,145,.12);
}
.lb-option__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
}
.lb-option__title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.lb-option__desc {
  font-size: 13px;
  color: var(--lb-muted);
  line-height: 1.35;
}

/* =========================================================
   네비게이션
   ========================================================= */
.lb-nav {
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.lb-nav-center {
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:center;
}

/* 공유 메시지 박스 */
.lb-share-msg {
  display: none;
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #cfe6ff;
  background: #f0f7ff;
  color: #1d4d8f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.lb-share-msg.is-show {
  display: block;
  animation: lbFadeIn .18s ease;
}

@keyframes lbFadeIn {
  from { opacity:0; transform: translateY(-4px); }
  to { opacity:1; transform: translateY(0); }
}

/* 답변 현황 */
.lb-answer-strip {
  margin-top: 10px;
  background: var(--lb-card);
  border: 1px solid var(--lb-border);
  border-radius: 14px;
  padding: 10px;
}
.lb-answer-strip__head {
  display:flex;
  justify-content:space-between;
  gap: 8px;
  align-items:center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--lb-muted);
}
.lb-answer-dots {
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.lb-dot {
  height: 9px;
  border-radius: 999px;
  background: #e8ebf2;
  border: 1px solid #dfe3ec;
}
.lb-dot.is-answered {
  background: linear-gradient(90deg, #fd8ec2, #e64191);
  border-color: #e64191;
}
.lb-dot.is-current {
  outline: 2px solid #c9d4ff;
  outline-offset: 1px;
}

/* =========================================================
   결과 영역
   ========================================================= */
.lb-result {
  margin-top: 12px;
  background: transparent;
}
.lb-result__header {
  text-align: center;
  margin-bottom: 10px;
}
.lb-result__header h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--lb-primary);
}
.lb-result__header p {
  margin: 0;
  color: var(--lb-muted);
  font-size: 13px;
}

.lb-result-hero {
  background: linear-gradient(135deg, #ea4f9a 0%, #d8307f 42%, #b81e66 100%);
  color: #fff;
  border-radius: 18px;
  padding: 16px;
  display:grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items:center;
  box-shadow: 0 12px 24px rgba(216,48,127,.18);
}
.lb-result-hero__icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 28px;
}
.lb-result-hero__label {
  font-size: 12px;
  opacity: .9;
  font-weight: 700;
}
.lb-result-hero h3 {
  margin: 4px 0 2px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.lb-result-hero p {
  margin: 0;
  font-size: 13px;
  opacity: .95;
}
.lb-result-hero__score {
  text-align: right;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 10px 12px;
}
.lb-result-hero__score-label {
  font-size: 11px;
  font-weight: 700;
  opacity: .9;
}
.lb-result-hero__score-value {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 900;
  color: #fff6b3; /* 중요문구 색상 강조 */
}

.lb-result-summary {
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--lb-border);
  border-left: 4px solid var(--lb-primary);
  border-radius: 14px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.65;
  box-shadow: 0 4px 16px rgba(25,35,65,.04);
}
.lb-result-summary strong {
  color: var(--lb-primary-dark);
  font-weight: 900;
}

.lb-result-grid {
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lb-card {
  background: #fff;
  border: 1px solid var(--lb-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(25,35,65,.04);
}
.lb-card--wide {
  grid-column: span 2;
}
.lb-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* 성향 바 */
.lb-traits {
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.lb-trait-row {
  display:grid;
  grid-template-columns: 95px 1fr 42px;
  gap: 8px;
  align-items:center;
}
.lb-trait-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--lb-muted);
}
.lb-trait-bar {
  height: 10px;
  border-radius: 999px;
  background: #edf0f6;
  overflow: hidden;
}
.lb-trait-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6d5ef7 0%, #e64191 100%);
}
.lb-trait-value {
  text-align: right;
  font-size: 12px;
  font-weight: 900;
  color: var(--lb-primary-dark);
}

/* 리스트 */
.lb-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lb-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--lb-text);
  line-height: 1.55;
}
.lb-list li + li { margin-top: 7px; }
.lb-list li::before {
  content: "•";
  color: var(--lb-primary);
  font-weight: 900;
  position: absolute;
  left: 4px;
  top: 0;
}
.lb-list--warn li::before {
  color: var(--lb-warning);
}

.lb-advice,
.lb-match-guide {
  font-size: 13px;
  line-height: 1.7;
  color: var(--lb-text);
}
.lb-advice strong,
.lb-match-guide strong {
  color: var(--lb-primary-dark);
  font-weight: 900;
}
.lb-advice .lb-point,
.lb-match-guide .lb-point {
  display:block;
  margin-top: 6px;
  padding: 8px 10px;
  background: #fff7fb;
  border: 1px solid #f7dbe9;
  border-radius: 10px;
}

.lb-result-actions {
  margin-top: 12px;
  display:flex;
  gap: 8px;
  justify-content:center;
  flex-wrap: wrap;
}

/* =========================================================
   가이드 섹션
   ========================================================= */
.lb-guide {
  margin-top: 16px;
}
.lb-guide__header {
  text-align:center;
  margin-bottom: 10px;
}
.lb-guide__header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
}
.lb-guide__header p {
  margin: 0;
  color: var(--lb-muted);
  font-size: 13px;
}
.lb-guide-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lb-guide-card {
  background: #fff;
  border: 1px solid var(--lb-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(25,35,65,.03);
}
.lb-guide-card__icon {
  width: 38px; height:38px;
  border-radius: 12px;
  background: #fff4fb;
  border: 1px solid #f8dbe9;
  display:flex; align-items:center; justify-content:center;
  font-size: 18px;
  margin-bottom: 8px;
}
.lb-guide-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 900;
}
.lb-guide-card p {
  margin: 0;
  font-size: 13px;
  color: var(--lb-muted);
  line-height: 1.6;
}

.lb-notice {
  margin-top: 10px;
  background: linear-gradient(135deg, #f5f8ff 0%, #fff7fb 100%);
  border: 1px solid #e8ecfa;
  border-radius: 16px;
  padding: 12px;
}
.lb-notice__item {
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}
.lb-notice__item + .lb-notice__item { margin-top: 6px; }
.lb-notice__item span { margin-right: 6px; }

/* =========================================================
   푸터
   ========================================================= */
.lb-footer {
  text-align:center;
  margin-top: 16px;
  font-size: 12px;
  color: #8a93a5;
  padding: 6px 0;
}

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 768px) {
  .lb-wrap { padding: 14px 10px 28px; }

  .lb-hero__title { font-size: 24px; }
  .lb-hero__desc { font-size: 13px; }

  .lb-toolbar {
    grid-template-columns: repeat(2, 1fr);
  }

  .lb-question-title {
    font-size: 19px;
  }

  .lb-options {
    grid-template-columns: 1fr;
  }
  .lb-option {
    min-height: auto;
    padding: 12px;
  }

  .lb-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .lb-nav .lb-btn {
    width: 100%;
  }
  .lb-nav-center {
    width: 100%;
    display:grid;
    grid-template-columns: 1fr 1fr;
  }
  .lb-nav-center .lb-btn {
    width: 100%;
  }

  .lb-answer-dots {
    grid-template-columns: repeat(5, 1fr);
  }

  .lb-result-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lb-result-hero__icon { margin: 0 auto; }
  .lb-result-hero__score {
    text-align: center;
  }

  .lb-result-grid {
    grid-template-columns: 1fr;
  }
  .lb-card--wide {
    grid-column: span 1;
  }

  .lb-guide-grid {
    grid-template-columns: 1fr;
  }
}