/* =========================================================
   쪼아 - 17금 첫인상 테스트
   파일: first.css
   ========================================================= */

:root{
  --bg1:#fff6f7;
  --bg2:#fff;
  --txt:#1d1d1f;
  --muted:#6b7280;
  --line:#ebeef2;
  --card:#ffffff;
  --shadow: 0 12px 28px rgba(17, 24, 39, .08);
  --accent:#ff5a7a;
  --accent2:#ffb23f;
  --good:#22c55e;
  --bad:#ef4444;
  --info:#3b82f6;
}

*{ box-sizing:border-box; }
.zzoa-wrap{
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 12px 28px;
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic", Arial, sans-serif;
}

.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

.zzoa-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 16px;
  background: linear-gradient(120deg, #ff6a88, #ffb86c, #ffd1dc);
  color: #111827;
  box-shadow: var(--shadow);
}

.hero-left{ flex:1; min-width: 0; }

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  font-weight: 800;
  font-size: 14px;
}
.badge-icon{ font-size: 16px; }
.hero-sub{
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(255,255,255,.55);
  display:inline-block;
  padding: 6px 10px;
  border-radius: 12px;
  max-width: 560px;
}

.hero-menu{
  display:flex;
  gap: 8px;
  align-items:center;
}
.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.65);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  transition: transform .12s ease, background .12s ease;
}
.icon-btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.85); }
.icon-btn:active{ transform: translateY(0px); }

.zzoa-main{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.notice{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid #ffe1e6;
  background: linear-gradient(180deg, #fff1f4, #fff);
}
.notice-row{
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.notice-ic{ font-size: 18px; margin-top: 1px; }
.notice-txt{
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.card{
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quiz-card .card-top{
  padding: 14px 14px 10px;
  border-bottom: 1px dashed var(--line);
  display:flex;
  gap: 12px;
  align-items:flex-end;
  justify-content:space-between;
  flex-wrap:wrap;
}

.progress-wrap{ flex: 1; min-width: 240px; }
.progress-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 8px;
}
.progress-label{
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}
.progress-count{ font-size: 12px; color: var(--muted); }

.progress-bar{
  width:100%;
  height: 10px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow:hidden;
  border: 1px solid #eef2f7;
}
.progress-fill{
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  transition: width .25s ease;
}

.quick-actions{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}
.pill-btn{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  cursor:pointer;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  display:inline-flex;
  align-items:center;
  gap: 6px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.pill-btn:hover{ transform: translateY(-1px); background:#fafafa; }
.pill-btn:active{ transform: translateY(0); }
.pill-btn.danger{
  border-color: #ffd0d9;
  background: #fff5f7;
  color: #9f1239;
}

.quiz-card .card-body{ padding: 14px; }

.view.hidden{ display:none; }

.intro-emoji{
  font-size: 32px;
  margin-bottom: 6px;
}
.intro-title{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.intro-desc{
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #374151;
}
.intro-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.intro-chip{
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fff7f9);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  display:flex;
  gap: 8px;
  align-items:center;
}

.start-btn{
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 14px 14px;
  cursor:pointer;
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  background: linear-gradient(120deg, #ff6a88, #ffb86c);
  box-shadow: 0 10px 22px rgba(255, 90, 122, .18);
  transition: transform .12s ease, filter .12s ease;
}
.start-btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.start-btn:active{ transform: translateY(0); }

.q-head{
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.q-bubble{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #fff1f4;
  border: 1px solid #ffd0d9;
  font-weight: 900;
  color: #9f1239;
}
.q-text{
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-top: 2px;
}

.choices{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.choice-btn{
  text-align:left;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 12px;
  cursor:pointer;
  font-size: 14px;
  line-height: 1.45;
  color: #111827;
  font-weight: 800;
  display:flex;
  gap: 10px;
  align-items:flex-start;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.choice-btn:hover{
  transform: translateY(-1px);
  border-color: #ffd0d9;
  background: #fff7f9;
}
.choice-dot{
  width: 18px;
  height: 18px;
  border-radius: 8px;
  margin-top: 2px;
  border: 2px solid #ff9fb2;
  background: #fff;
  flex: 0 0 auto;
}
.choice-btn.selected{
  border-color: #ff8aa3;
  background: linear-gradient(180deg, #fff, #fff1f4);
}
.choice-btn.selected .choice-dot{
  border-color: #ff5a7a;
  background: radial-gradient(circle at 30% 30%, #fff, #ffb3c2);
}

.nav-row{
  margin-top: 12px;
  display:flex;
  gap: 10px;
}
.nav-btn{
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 12px;
  cursor:pointer;
  background:#fff;
  font-weight: 900;
  font-size: 14px;
  transition: transform .12s ease, background .12s ease;
}
.nav-btn:hover{ transform: translateY(-1px); background:#fafafa; }
.nav-btn:active{ transform: translateY(0); }
.nav-btn.primary{
  border: none;
  background: linear-gradient(120deg, #ff6a88, #ffb86c);
}
.nav-btn.primary:hover{ filter: brightness(1.02); }

.mini-hint{
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
  display:flex;
  gap: 8px;
  align-items:flex-start;
  line-height: 1.45;
}

/* 로딩 */
.loading-wrap{
  padding: 6px 0;
  text-align:center;
}
.loading-icons{
  display:flex;
  gap: 10px;
  justify-content:center;
  margin: 6px 0 10px;
  font-size: 28px;
}
.ld{
  display:inline-block;
  animation: bounce 1.1s infinite ease-in-out;
}
.ld.i2{ animation-delay: .15s; }
.ld.i3{ animation-delay: .3s; }

@keyframes bounce{
  0%,100%{ transform: translateY(0); opacity: .75; }
  50%{ transform: translateY(-8px); opacity: 1; }
}

.loading-title{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}
.loading-desc{
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 12px;
}
.loading-bar{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow:hidden;
  border: 1px solid #eef2f7;
}
.loading-fill{
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 999px;
  transition: width .18s ease;
}

/* 결과 */
.result-card{ overflow:hidden; }
.result-top{
  padding: 16px 14px 12px;
  background: linear-gradient(120deg, #fff1f4, #fff, #fff7e9);
  border-bottom: 1px solid var(--line);
}
.result-title{
  font-size: 13px;
  font-weight: 900;
  color: #374151;
  margin-bottom: 6px;
}
.result-type{
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.result-summary{
  font-size: 13px;
  line-height: 1.55;
  color: #374151;
}

.result-badges{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 12px;
}
.badge{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:#fff;
  font-size: 12px;
  font-weight: 900;
  color: #111827;
}
.badge b{
  color: #9f1239;
}

.result-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  padding: 12px 14px;
}
.result-box{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
}
.box-head{
  font-weight: 1000;
  font-size: 13px;
  margin-bottom: 8px;
  display:flex;
  gap: 8px;
  align-items:center;
}
.box-list{
  margin: 0;
  padding-left: 18px;
  color: #374151;
  font-size: 13px;
  line-height: 1.55;
}
.box-list li{ margin: 4px 0; }

.axis-wrap{
  padding: 12px 14px;
  border-top: 1px dashed var(--line);
}
.axis-head{ margin-bottom: 8px; }
.axis-title{
  font-weight: 1000;
  display:flex;
  gap: 8px;
  align-items:center;
}
.axis-sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.axis-row{
  display:grid;
  grid-template-columns: 110px 1fr 44px;
  gap: 10px;
  align-items:center;
  margin: 10px 0;
}
.axis-name{
  font-size: 12px;
  font-weight: 900;
  color:#374151;
}
.axis-bar{
  height: 10px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow:hidden;
  border: 1px solid #eef2f7;
}
.axis-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #60a5fa, #ff6a88);
  border-radius: 999px;
  transition: width .35s ease;
}
.axis-score{
  font-size: 12px;
  font-weight: 1000;
  color: #111827;
  text-align:right;
}

.compat-wrap{
  padding: 12px 14px;
  border-top: 1px dashed var(--line);
}
.compat-title{
  font-weight: 1000;
  display:flex;
  gap: 8px;
  align-items:center;
  margin-bottom: 8px;
}
.compat-body{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.result-actions{
  padding: 12px 14px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:flex-start;
  border-top: 1px solid var(--line);
}

.action-btn{
  border-radius: 14px;
  border: 1px solid var(--line);
  background:#fff;
  padding: 12px 12px;
  cursor:pointer;
  font-weight: 1000;
  font-size: 14px;
  display:inline-flex;
  gap: 8px;
  align-items:center;
  transition: transform .12s ease, background .12s ease;
}
.action-btn:hover{ transform: translateY(-1px); background:#fafafa; }
.action-btn:active{ transform: translateY(0); }

.action-btn.primary{
  border:none;
  background: linear-gradient(120deg, #ff6a88, #ffb86c);
}
.action-btn.ghost{
  background: #f9fafb;
}

.share-wrap{
  display:flex;
  flex-direction:column;
  gap: 8px;
  min-width: 260px;
}

.share-msg{
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #1e3a8a;
}

.result-highlight{
  padding: 12px 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color:#374151;
  background: linear-gradient(180deg, #fff, #fff7f9);
  border-top: 1px dashed var(--line);
}
.hl{
  font-weight: 1000;
  color: #9f1239;
}
.hl2{
  font-weight: 1000;
  color: #b45309;
}

/* 가이드 */
.guide-card{
  padding: 14px 14px 10px;
}
.guide-title{
  font-weight: 1000;
  display:flex;
  gap: 8px;
  align-items:center;
  margin-bottom: 10px;
}
.guide-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.guide-item{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  display:flex;
  gap: 10px;
  background:#fff;
}
.guide-ic{ font-size: 18px; }
.guide-txt{
  font-size: 13px;
  line-height: 1.55;
  color:#374151;
}

.mini-footer{
  margin-top: 10px;
  font-size: 11px;
  color: #9ca3af;
  text-align:center;
}

/* 반응형 */
@media (max-width: 640px){
  .zzoa-hero{ padding: 12px 12px; }
  .hero-sub{ max-width: 100%; }
  .result-grid{ grid-template-columns: 1fr; }
  .guide-grid{ grid-template-columns: 1fr; }
  .axis-row{ grid-template-columns: 98px 1fr 44px; }
}