:root{
  --bg:#f6f8fc;
  --panel:#ffffff;
  --panel-soft:#f2f4f9;

  --text:#1e2430;
  --muted:#6b7385;
  --line:#e6e9f2;

  --primary:#5b6cff;
  --primary2:#7c3aed;
  --accent:#00c2a8;

  --shadow:0 10px 40px rgba(18, 30, 60, .08);
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Pretendard, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color:var(--text);
}

.page{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

/* ===== 컨테이너 ===== */
.shell{
  background: var(--panel);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* ===== 상단 ===== */
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.brand-mark{
  width:42px;height:42px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  display:grid;place-items:center;
}
.brand-ic{width:26px;height:26px;color:white}
.brand-title{font-weight:900}
.brand-sub{font-size:12px;color:var(--muted)}

.notice{
  display:grid;
  gap:6px;
  font-size:12px;
  color:var(--muted);
}

/* ===== 히어로 ===== */
.hero{
  padding:30px 24px 10px;
  text-align:left;
}
.h1{
  margin:0 0 6px;
  font-size:32px;
  font-weight:900;
}
.p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

/* ===== 성별 탭 ===== */
.tabs{
  margin-top:18px;
  display:inline-flex;
  gap:4px;
  background:var(--panel-soft);
  padding:6px;
  border-radius:14px;
}

.tab{
  border:0;
  padding:10px 18px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
  color:var(--muted);
  background:transparent;
}

.tab.is-active{
  background:white;
  color:var(--primary);
  box-shadow:0 4px 16px rgba(0,0,0,.05);
}

/* ===== 패널 공통 ===== */
.panel{
  margin:20px;
  border-radius:var(--radius);
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

/* ===== 업로더 ===== */
.uploader{
  padding:20px;
}

.uploader-title{
  font-weight:900;
}
.uploader-hint{
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
}

.dropbox{
  display:flex;
  gap:16px;
  align-items:center;
  padding:22px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--panel-soft);
  cursor:pointer;
  transition:.2s;
}
.dropbox:hover{
  border-color:var(--primary);
  background:#eef0ff;
}

.sig{
  width:72px;height:72px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  display:grid;place-items:center;
}
.sig-ic{
  width:40px;height:40px;color:white;
}

.dropbox-main{
  font-weight:900;
}
.dropbox-sub{
  font-size:13px;
  color:var(--muted);
}

.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:white;
  border:1px solid var(--line);
  margin-top:8px;
  display:inline-block;
}

.privacyline{
  margin-top:12px;
  font-size:12px;
  color:var(--muted);
}

/* ===== 결과 ===== */
.result{
  padding:20px;
}

.result-top{
  display:flex;
  gap:18px;
  align-items:center;
}

.avatar{
  width:110px;height:110px;
  border-radius:20px;
  overflow:hidden;
  background:var(--panel-soft);
  border:1px solid var(--line);
  position:relative;
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.badge{
  position:absolute;
  bottom:8px;
  right:8px;
  width:34px;height:34px;
  border-radius:999px;
  display:grid;place-items:center;
  background:var(--primary);
  color:white;
  font-size:16px;
}

.result-title{
  margin:0;
  font-size:22px;
  font-weight:900;
}

.meter-num{
  font-size:40px;
  font-weight:1000;
  color:var(--primary);
}

.meter-sub{
  font-size:13px;
  color:var(--muted);
}

.result-desc{
  margin-top:12px;
  line-height:1.6;
  color:#333;
}

/* ===== 연예인 ===== */
.celebs{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:var(--panel-soft);
  border:1px solid var(--line);
}
.celebs-label{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
}
.celebs-names{
  margin-top:6px;
  font-weight:900;
}

/* ===== 막대그래프 ===== */
.bars{
  margin-top:16px;
  padding:14px;
  border-radius:14px;
  background:var(--panel-soft);
  border:1px solid var(--line);
}

.bar{
  display:grid;
  grid-template-columns:30px 1fr 50px;
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}

.track{
  height:10px;
  border-radius:999px;
  background:#e6e9f2;
  overflow:hidden;
}
.fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),var(--primary2));
}

.pct{
  text-align:right;
  font-weight:900;
}

/* ===== 버튼 ===== */
.actions{
  display:flex;
  gap:10px;
  margin-top:18px;
}

.btn{
  flex:1;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:white;
  font-weight:900;
  cursor:pointer;
  transition:.2s;
}
.btn:hover{
  border-color:var(--primary);
}

.btn-ghost{
  background:var(--panel-soft);
}

/* ===== 푸터 ===== */
.footer{
  text-align:center;
  padding:18px;
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
}

/* 결과 이미지 우측 하단 동물 배지 숨김 */
#avatarBadge { display: none !important; }
