@charset "utf-8";

/* =========================
   에겐,테토 테스트 스타일
   ========================= */

:root{
  --egg-bg:#f4f1f7;
  --egg-card:#ffffff;
  --egg-text:#2b2b35;
  --egg-sub:#66677a;
  --egg-line:#ebe6f3;
  --egg-primary:#a437d8;
  --egg-primary-2:#ff5cb8;
  --egg-primary-3:#6f3ff5;
  --egg-soft:#fdf2fb;
  --egg-soft-2:#f7ecff;
  --egg-success:#18a572;
  --egg-warn:#e67e22;
  --egg-danger:#e15b64;
  --egg-shadow:0 10px 28px rgba(115, 61, 171, 0.10);
  --egg-shadow-soft:0 6px 16px rgba(115, 61, 171, 0.08);
  --egg-radius:18px;
}

* { box-sizing:border-box; }

#eggTetoApp.egg-app{
  width:100%;
  background: linear-gradient(180deg, #f6f3f9 0%, #f0edf6 100%);
  padding: 14px 0 24px;
  color:var(--egg-text);
}

.egg-wrap{
  width:100%;
  max-width: 860px;
  margin:0 auto;
  padding: 0 14px;
}

/* 타이틀 */
.egg-title-box{
  display:flex;
  align-items:center;
  gap:12px;
  background: linear-gradient(135deg, #fff 0%, #fbf6ff 100%);
  border:1px solid var(--egg-line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--egg-shadow-soft);
  position: relative;
}

.egg-title-icon{
  width:42px;
  height:42px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  background: linear-gradient(135deg, rgba(255,92,184,0.18), rgba(164,55,216,0.15));
  flex:0 0 42px;
}

.egg-title-text{
  min-width:0;
  flex:1;
}
.egg-title-text h1{
  margin:0;
  font-size: 22px;
  line-height:1.2;
  font-weight:800;
  color:#b33ad6;
  letter-spacing:-0.3px;
}
.egg-title-text p{
  margin:4px 0 0;
  font-size:13px;
  color:var(--egg-sub);
  line-height:1.4;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.egg-title-badge{
  flex:0 0 auto;
  font-size:12px;
  font-weight:700;
  color:#fff;
  background: linear-gradient(135deg, var(--egg-primary-2), var(--egg-primary));
  border-radius: 999px;
  padding:6px 10px;
}

/* 퀵메뉴 */
.egg-quick-menu{
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
}
.egg-menu-btn{
  border:1px solid var(--egg-line);
  background:#fff;
  border-radius: 12px;
  padding:9px 8px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  transition: .18s ease;
  box-shadow: var(--egg-shadow-soft);
}
.egg-menu-btn:hover{
  transform: translateY(-1px);
  border-color: #dccaf6;
}
.egg-menu-btn .icon{ font-size:15px; }
.egg-menu-btn .txt{
  font-size:13px;
  font-weight:700;
  color:#4c4d60;
}

/* 카드 공통 */
.egg-card{
  margin-top:12px;
  background: var(--egg-card);
  border:1px solid var(--egg-line);
  border-radius: var(--egg-radius);
  box-shadow: var(--egg-shadow);
  padding: 16px;
}

.egg-card-head h2{
  margin:0 0 6px;
  font-size: 19px;
  color:#3a3550;
}
.egg-card-head p{
  margin:0;
  font-size: 14px;
  color:var(--egg-sub);
  line-height:1.6;
}
.egg-card-head strong{
  color:#a437d8;
}

/* 시작 */
.egg-section-label{
  margin:12px 0 10px;
  font-size:14px;
  font-weight:700;
  color:#5a5670;
}

.egg-gender-box{
  margin-top:12px;
  padding:12px;
  border:1px solid #f0e7fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fcf8ff 100%);
}

.egg-gender-buttons{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
}
.egg-gender-btn{
  border:1px solid #eddcfb;
  background:#fff;
  color:#4a4466;
  border-radius:14px;
  padding:12px 8px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:72px;
  font-weight:700;
  transition: .2s ease;
}
.egg-gender-btn .emoji{ font-size:20px; }
.egg-gender-btn:hover{
  transform: translateY(-1px);
  border-color: #dcb9fa;
}
.egg-gender-btn.active{
  color:#fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--egg-primary-2), var(--egg-primary));
  box-shadow: 0 8px 20px rgba(181, 71, 211, 0.25);
}
.egg-selected-gender{
  margin:10px 2px 0;
  font-size:13px;
  color:#6b6685;
}

.egg-start-actions{
  margin-top:14px;
  display:flex;
  justify-content:center;
}

/* 버튼 */
.egg-primary-btn,
.egg-secondary-btn{
  border:none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:44px;
}
.egg-primary-btn{
  background: linear-gradient(135deg, var(--egg-primary-2), var(--egg-primary));
  color:#fff;
  box-shadow: 0 8px 18px rgba(180, 70, 211, 0.25);
}
.egg-primary-btn:hover{ transform: translateY(-1px); }
.egg-primary-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}
.egg-secondary-btn{
  background:#fff;
  color:#514b68;
  border:1px solid #e8ddf7;
}
.egg-secondary-btn:hover{
  border-color:#d9c3f6;
  transform: translateY(-1px);
}
.egg-secondary-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
  transform:none;
}
.btn-icon{ font-size:15px; }

/* 퀴즈 */
.egg-progress-wrap{
  margin-bottom:14px;
}
.egg-progress-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.egg-step-pill{
  background: linear-gradient(135deg, #ff67bf, #9c39d7);
  color:#fff;
  padding:8px 14px;
  border-radius: 999px;
  font-weight:800;
  font-size:14px;
  min-width:92px;
  text-align:center;
  box-shadow: 0 8px 18px rgba(180, 70, 211, 0.20);
}
.egg-progress-percent{
  font-size:13px;
  font-weight:700;
  color:#7d7898;
}
.egg-progress-bar{
  width:100%;
  height:10px;
  border-radius:999px;
  background:#f0e8f5;
  overflow:hidden;
}
.egg-progress-fill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, #ff67bf, #9c39d7);
  transition: width .25s ease;
}

.egg-question-wrap{
  margin-top:6px;
}
.egg-question-title{
  margin:0 0 14px;
  font-size: 22px;
  line-height:1.45;
  text-align:center;
  color:#34304a;
  letter-spacing:-0.2px;
  font-weight:700;
}

.egg-options-wrap{
  display:grid;
  gap:10px;
}
.egg-option-btn{
  width:100%;
  text-align:left;
  border:2px solid #f1c0d5;
  background: #fff9fb;
  color:#3f3954;
  border-radius:16px;
  padding:14px 14px;
  cursor:pointer;
  font-size:15px;
  line-height:1.5;
  font-weight:600;
  transition:.18s ease;
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.egg-option-btn:hover{
  background:#fff;
  border-color:#e7b1cd;
}
.egg-option-btn.active{
  border-color:#c34bdd;
  background: linear-gradient(180deg, #fff 0%, #faf1ff 100%);
  box-shadow: 0 8px 20px rgba(163, 55, 216, 0.12);
}
.egg-option-index{
  width:24px; height:24px;
  border-radius:999px;
  background:#f3e8ff;
  color:#8b42d7;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  flex:0 0 24px;
  margin-top:1px;
}
.egg-option-btn.active .egg-option-index{
  background: linear-gradient(135deg, #ff6fbf, #9d3ad7);
  color:#fff;
}
.egg-option-text{
  flex:1;
}

.egg-nav-actions{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.egg-answer-helper{
  margin-top:10px;
  color:#7b7596;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:6px;
}
.egg-answer-helper .dot{
  width:7px;height:7px;border-radius:50%;
  background:#c45dde;
  display:inline-block;
}

/* 로딩 */
.egg-loading-section{
  text-align:center;
  padding:26px 16px;
}
.egg-loader{
  width:64px;
  height:64px;
  margin:0 auto 12px;
  border-radius:50%;
  border:6px solid #f0dfea;
  border-top-color:#ff5cb8;
  border-right-color:#a437d8;
  animation: eggSpin 1s linear infinite;
}
@keyframes eggSpin{
  to { transform: rotate(360deg); }
}
.egg-loading-section h3{
  margin:0 0 6px;
  color:#9438d7;
  font-size:28px;
  font-weight:800;
}
.egg-loading-section p{
  margin:0;
  color:#6d6787;
  font-size:17px;
  line-height:1.5;
}

/* 결과 */
.egg-result-head{
  display:grid;
  gap:12px;
}
.egg-result-title-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.egg-result-icon{
  width:42px;height:42px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background: linear-gradient(135deg, rgba(255,92,184,.18), rgba(164,55,216,.18));
  font-size:20px;
}
.egg-result-title-row h2{
  margin:0;
  font-size:22px;
  color:#3e365b;
}
.egg-result-title-row p{
  margin:3px 0 0;
  font-size:13px;
  color:#76718f;
}

.egg-result-type-card{
  border:1px solid #ebdefc;
  background: linear-gradient(135deg, #fff 0%, #faf4ff 100%);
  border-radius: 16px;
  padding: 14px;
}
.egg-result-type-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 16px;
  border-radius:999px;
  font-size:22px;
  font-weight:900;
  color:#fff;
  background: linear-gradient(135deg, #ff67bf, #a437d8);
  box-shadow: 0 8px 20px rgba(164,55,216,0.22);
}
.egg-result-type-tag{
  margin-top:8px;
  font-size:13px;
  color:#635d7f;
  font-weight:700;
}

/* 점수 패널 */
.egg-score-panel{
  margin-top:14px;
  border:1px solid #eee4fb;
  border-radius: 16px;
  padding: 12px;
  background:#fff;
}
.egg-score-title{
  font-size:14px;
  color:#5f5a78;
  font-weight:700;
  margin-bottom:8px;
}
.egg-dual-bar{
  display:grid;
  grid-template-columns: 62px 1fr 62px;
  align-items:center;
  gap:8px;
}
.egg-dual-left, .egg-dual-right{
  font-size:12px;
  color:#66617d;
  display:flex;
  flex-direction:column;
  gap:1px;
  align-items:center;
  justify-content:center;
}
.egg-dual-left strong,
.egg-dual-right strong{
  font-size:18px;
  color:#3f3a55;
}
.egg-dual-track{
  position:relative;
  height:14px;
  border-radius:999px;
  background:#efe5f6;
  overflow:hidden;
  display:flex;
}
.egg-left-bar{
  height:100%;
  background: linear-gradient(90deg, #ff8acb, #ff5cb8);
  transition: width .4s ease;
}
.egg-right-bar{
  height:100%;
  background: linear-gradient(90deg, #b955e4, #7f38db);
  transition: width .4s ease;
}

.egg-axis-grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.egg-axis-item{
  border:1px solid #f1e7fb;
  border-radius: 12px;
  padding:10px;
  background: #fcf9ff;
}
.egg-axis-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.egg-axis-name{
  font-size:13px;
  font-weight:800;
  color:#504a68;
}
.egg-axis-score{
  font-size:12px;
  color:#7a7394;
}
.egg-axis-track{
  height:8px;
  border-radius:999px;
  background:#efe7f6;
  overflow:hidden;
}
.egg-axis-fill{
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, #ff6bbf, #9c39d7);
}
.egg-axis-label{
  margin-top:6px;
  font-size:12px;
  color:#706b88;
}

/* 요약 */
.egg-summary-box{
  margin-top:14px;
  border-radius:16px;
  border:1px solid #eee1fb;
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
  padding:14px;
}
.egg-summary-box h3{
  margin:0 0 8px;
  font-size:16px;
  color:#4d4666;
}
.egg-summary-text{
  line-height:1.8;
  color:#3b3550;
  font-size:14px;
}
.egg-summary-text .hl{
  color:#a437d8;
  font-weight:800;
  background: linear-gradient(180deg, transparent 55%, rgba(164,55,216,.12) 55%);
}
.egg-summary-text .hl2{
  color:#ff4da7;
  font-weight:800;
}

/* 상세 카드 */
.egg-detail-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.egg-detail-card{
  border:1px solid #efe4fb;
  border-radius:14px;
  background:#fff;
  padding:12px;
}
.egg-detail-card h4{
  margin:0 0 8px;
  font-size:14px;
  color:#4f4969;
}
.egg-detail-card ul{
  margin:0;
  padding-left:16px;
}
.egg-detail-card li{
  margin:0 0 6px;
  color:#5c5676;
  font-size:13px;
  line-height:1.55;
}
.egg-detail-card li:last-child{ margin-bottom:0; }

/* 궁합/가이드 */
.egg-match-section{
  margin-top:14px;
}
.egg-match-section h3{
  margin:0 0 8px;
  font-size:16px;
  color:#4d4666;
}
.egg-match-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.egg-match-card{
  border-radius:14px;
  padding:12px;
  border:1px solid #eee4fb;
  background:#fff;
}
.egg-match-card.good{
  background: linear-gradient(180deg, #fff 0%, #f7fcfb 100%);
  border-color:#d8f2e8;
}
.egg-match-card.tip{
  background: linear-gradient(180deg, #fff 0%, #fff8f2 100%);
  border-color:#f7e3d0;
}
.egg-match-card h4{
  margin:0 0 6px;
  font-size:14px;
  color:#4f4968;
}
.egg-match-card p{
  margin:0;
  font-size:13px;
  line-height:1.65;
  color:#5b5674;
}

/* 결과 액션 */
.egg-result-actions{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:8px;
}

/* 복사 안내 박스 */
.egg-copy-message{
  margin-top:10px;
  border-radius: 12px;
  border:1px solid #ecdafc;
  background: linear-gradient(180deg, #fff 0%, #fbf5ff 100%);
  padding:10px 12px;
  font-size:13px;
  line-height:1.55;
  color:#5a5472;
  box-shadow: var(--egg-shadow-soft);
}
.egg-copy-message.success{
  border-color:#cfeedd;
  background:linear-gradient(180deg, #fff 0%, #f4fffa 100%);
  color:#2f6f57;
}
.egg-copy-message.error{
  border-color:#f5d5d8;
  background:linear-gradient(180deg, #fff 0%, #fff7f8 100%);
  color:#9c434b;
}

/* 가이드 */
.egg-guide-box{
  margin-top:16px;
  border:1px solid #ece1fb;
  border-radius:16px;
  padding:14px;
  background: linear-gradient(180deg, #fff 0%, #fbf7ff 100%);
}
.egg-guide-box h3{
  margin:0 0 10px;
  font-size:16px;
  color:#4f4869;
}
.egg-guide-box ul{
  margin:0;
  padding-left:18px;
}
.egg-guide-box li{
  margin:0 0 7px;
  color:#615b7c;
  font-size:13px;
  line-height:1.65;
}
.egg-guide-box li:last-child{ margin-bottom:0; }
.egg-guide-box strong{
  color:#a437d8;
}
.egg-guide-note{
  margin-top:10px;
  border-radius:12px;
  background:#fff;
  border:1px dashed #dfc8fb;
  padding:10px;
  font-size:13px;
  color:#615a7b;
  line-height:1.55;
}

/* 푸터 */
.egg-footer{
  text-align:center;
  margin-top:14px;
  color:#7f789a;
  font-size:12px;
  padding:6px 0 0;
}

/* 공용 강조 */
.egg-important{
  color:#a437d8;
  font-weight:800;
}
.egg-important-pink{
  color:#ff4da7;
  font-weight:800;
}

/* 모바일 최적화 */
@media (max-width: 640px){
  .egg-wrap{ padding:0 10px; }
  .egg-card{ padding:14px; border-radius:16px; }
  .egg-title-text h1{ font-size:18px; }
  .egg-title-text p{ font-size:12px; }
  .egg-title-badge{ font-size:11px; padding:5px 8px; }

  .egg-question-title{
    font-size: 18px;
    line-height:1.5;
    margin-bottom:12px;
  }
  .egg-option-btn{
    padding:12px;
    font-size:14px;
    border-radius:14px;
  }

  .egg-loading-section h3{ font-size:22px; }
  .egg-loading-section p{ font-size:15px; }

  .egg-result-title-row h2{ font-size:18px; }
  .egg-result-type-badge{ font-size:18px; min-height:38px; }

  .egg-axis-grid,
  .egg-detail-grid,
  .egg-match-grid{
    grid-template-columns: 1fr;
  }

  .egg-result-actions{
    grid-template-columns: 1fr;
  }

  .egg-gender-buttons{
    grid-template-columns: 1fr 1fr;
  }
  .egg-gender-btn[data-gender="none"]{
    grid-column: 1 / -1;
  }
}

/* 아주 작은 화면 */
@media (max-width: 390px){
  .egg-step-pill{ min-width:80px; padding:7px 12px; font-size:13px; }
  .egg-menu-btn .txt{ font-size:12px; }
  .egg-question-title{ font-size:17px; }
  .egg-option-btn{ font-size:13px; }
}