:root{
  --bg1:#fff6fa;
  --bg2:#ffe9f3;
  --card:#ffffff;
  --txt:#1f1f1f;
  --muted:#6b6b6b;
  --line:#ececec;
  --accent:#ff4f87;
  --accent2:#ff7aa7;
  --good:#ff3d7a;
  --shadow: 0 14px 40px rgba(15, 15, 20, .10);
  --radius:18px;
  --radius2:24px;
  --maxw: 920px;
  --focus: 0 0 0 4px rgba(255,79,135,.18);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  color:var(--txt);
}

.hotn-wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px;
}

.hotn-topnav{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
  margin: 4px 0 12px;
}
.hotn-navitem{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  text-decoration:none;
  color:var(--txt);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.hotn-navitem .ico{
  width:18px;height:18px; display:inline-flex;
}
.hotn-navitem svg{width:18px;height:18px; fill:#333;}
.hotn-navitem .txt{font-size:13px; font-weight:700;}
.hotn-navitem:focus{outline:none; box-shadow: var(--focus);}

.hotn-titlebox{
  background: linear-gradient(135deg, #ff5b92, #ff9dbd);
  border-radius: var(--radius2);
  padding: 14px 16px; /* 너무 크게 안 만듦 */
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow:hidden;
}
.hotn-titlebox:before{
  content:"";
  position:absolute;
  inset:-40px -60px auto auto;
  width:180px;height:180px;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  transform: rotate(18deg);
}
.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  font-size:12px;
  font-weight:800;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  margin-bottom: 6px;
}
.title{
  margin: 2px 0 4px;
  font-size: 20px;
  letter-spacing: -.2px;
}
.desc{
  margin: 0;
  font-size: 13px;
  opacity: .95;
  line-height: 1.35;
}

.hotn-sharebox{
  margin-top: 10px;
}
.sharebox-inner{
  background: #fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  padding: 12px;
}
.sharebox-title{
  font-weight: 900;
  margin-bottom: 6px;
}
.sharebox-msg{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}
.sharebox-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.sharebox-input{
  flex:1;
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  outline:none;
}
.sharebox-input:focus{box-shadow: var(--focus); border-color: rgba(255,79,135,.45);}

.hotn-main{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.hotn-quizcard{
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  border:1px solid rgba(255,79,135,.18);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}

.quiz-top{
  padding: 14px 14px 10px;
}
.progress{
  height: 10px;
  background: rgba(0,0,0,.06);
  border-radius: 999px;
  overflow:hidden;
}
.progress-bar{
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width:0%;
  border-radius: 999px;
  transition: width .35s ease;
}
.progress-meta{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border:1px solid rgba(0,0,0,.06);
  font-weight: 800;
  color:#333;
}

.qwrap{
  padding: 8px 14px 14px;
}
.qno{
  display:inline-flex;
  width:34px;height:34px;
  border-radius: 999px;
  align-items:center;
  justify-content:center;
  background: rgba(255,79,135,.14);
  border:1px solid rgba(255,79,135,.25);
  font-weight: 900;
  color: #b1003c;
}
.qtitle{
  margin: 10px 0 4px;
  font-size: 18px;
  letter-spacing: -.2px;
}
.qsub{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.choices{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice-btn{
  text-align:left;
  padding: 14px 12px;
  border-radius: 16px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  cursor:pointer;
  transition: transform .06s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 62px;
}
.choice-btn:hover{
  border-color: rgba(255,79,135,.35);
  box-shadow: 0 14px 26px rgba(0,0,0,.07);
}
.choice-btn:active{transform: translateY(1px)}
.choice-btn:focus{outline:none; box-shadow: var(--focus);}
.choice-top{
  display:flex;
  align-items:center;
  gap:10px;
}
.choice-ico{
  width:34px;height:34px;
  border-radius: 12px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(255,79,135,.12);
  border:1px solid rgba(255,79,135,.18);
  font-size: 18px;
}
.choice-text{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
}
.choice-hint{
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.quiz-bottom{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.btn{
  border: 0;
  cursor:pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  font-size: 14px;
}
.btn:focus{outline:none; box-shadow: var(--focus);}
.btn-primary{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 14px 26px rgba(255,79,135,.22);
}
.btn-ghost{
  background: rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.08);
  color: #222;
}
.btn-mini{
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 12px;
}

.hotn-loading{
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.70);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  backdrop-filter: blur(6px);
}
.loading-inner{
  width: min(520px, 100%);
  background: #fff;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align:center;
}
.loading-icons{
  display:flex;
  justify-content:center;
  gap: 12px;
  font-size: 26px;
  margin-bottom: 10px;
}
.loading-title{
  font-weight: 1000;
  font-size: 16px;
  margin-bottom: 6px;
}
.loading-desc{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.loading-dots{
  display:flex;
  justify-content:center;
  gap:6px;
  margin-top: 12px;
}
.loading-dots i{
  width:8px;height:8px;border-radius:999px;
  background: rgba(255,79,135,.65);
  display:inline-block;
  animation: hotnDot 1s infinite ease-in-out;
}
.loading-dots i:nth-child(2){animation-delay:.12s}
.loading-dots i:nth-child(3){animation-delay:.24s}
@keyframes hotnDot{
  0%,100%{transform: translateY(0); opacity:.55}
  50%{transform: translateY(-5px); opacity:1}
}

/* 결과 */
.hotn-result{
  background: #fff;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  overflow:hidden;
}
.result-head{
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,79,135,.10), rgba(255,122,167,.10));
}
.result-badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,79,135,.12);
  border:1px solid rgba(255,79,135,.18);
  font-weight: 1000;
  color: #b1003c;
  font-size: 12px;
}
.result-title{
  margin: 8px 0 4px;
  font-size: 18px;
}
.result-sub{
  margin:0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.metrics{
  padding: 12px 14px 4px;
  display:grid;
  gap: 10px;
}
.metric-label{
  display:flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 900;
}
.metric-label .muted{color: var(--muted); font-weight: 800;}
.meter{
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  overflow:hidden;
}
.meter-fill{
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .45s ease;
}

/* 결과 카드 */
.result-card{
  padding: 14px;
  padding-top: 10px;
}
.rc-top{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-bottom: 12px;
}
.rc-ico{
  width:46px;height:46px;
  border-radius: 18px;
  background: rgba(255,79,135,.12);
  border:1px solid rgba(255,79,135,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 24px;
}
.rc-type{
  font-weight: 1000;
  font-size: 16px;
}
.rc-line{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.rc-section{
  border-top:1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.rc-h{
  margin: 0 0 8px;
  font-size: 14px;
}
.rc-ul{
  margin:0;
  padding-left: 18px;
  color:#2c2c2c;
}
.rc-ul li{
  margin: 6px 0;
  line-height: 1.45;
}
.compat{
  background: rgba(255,79,135,.08);
  border:1px solid rgba(255,79,135,.14);
  padding: 10px 12px;
  border-radius: 16px;
  color: #2b2b2b;
  line-height: 1.45;
  font-size: 13px;
}
.rc-actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
}

/* 가이드 */
.hotn-guide{
  background: #fff;
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  padding: 14px;
}
.g-title{
  margin:0 0 10px;
  font-size: 15px;
}
.g-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.g-item{
  display:flex;
  gap: 10px;
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,.02);
}
.g-ico{
  width:36px;height:36px;
  border-radius: 14px;
  background: rgba(255,79,135,.10);
  border:1px solid rgba(255,79,135,.16);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
}
.g-txt{
  font-size: 13px;
  color: #2b2b2b;
  line-height: 1.45;
}
.g-txt b{color:#111}

/* footer */
.hotn-footer{
  text-align:center;
  padding: 10px 0 2px;
}
.copyright{
  font-size: 12px;
  color: var(--muted);
}

/* 모달 */
.hotn-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 16px;
  background: rgba(15,15,20,.55);
}
.modal-card{
  width: min(520px, 100%);
  background: #fff;
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,79,135,.18);
  text-align:center;
}
.modal-icon{font-size: 34px; margin-bottom: 6px;}
.modal-title{margin:0 0 6px; font-size: 18px;}
.modal-desc{
  margin:0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.modal-actions{
  display:flex;
  gap: 10px;
  justify-content:center;
}
.modal-footnote{
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* 반응형 */
@media (max-width: 640px){
  .choices{grid-template-columns: 1fr;}
  .g-grid{grid-template-columns: 1fr;}
  .hotn-navitem .txt{display:none;}
}