/* ══════════════════════════════════════════
   quiz.html 전용 스타일
   공통 토큰/리셋/헤더/사이드바/blob/float/footer/btn 등은
   assets/styles.css 에 있으므로 여기서는 페이지 고유 규칙만 관리
════════════════════════════════════════════ */

/* quiz 페이지는 짧은 컨텐츠라도 푸터가 바닥에 붙도록 flex 세로 레이아웃 사용 */
body { min-height: 100vh; display: flex; flex-direction: column; }

/* ── 메인 ── */
main {
    flex: 1;
    padding-top: 100px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 퀴즈 컨테이너 ── */
.quiz-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 5%;
}

.quiz-box {
    background: var(--white);
    border-radius: 32px;
    padding: 56px 52px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* ── 데이지 데코 ── */
.deco-daisy {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
.deco-daisy-tr { top: -36px; right: -36px; width: 140px; transform: rotate(15deg); }
.deco-daisy-bl { bottom: -28px; left: -28px; width: 110px; transform: rotate(-20deg); }

/* ── 프로그레스 ── */
.progress-wrap { margin-bottom: 48px; position: relative; z-index: 1; }
.progress-meta {
    display: flex; justify-content: space-between;
    margin-bottom: 10px; font-size: 0.88rem; font-weight: 500; color: var(--light);
}
.progress-track {
    height: 8px; background: #F1E9E7; border-radius: 10px; overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 10px;
    background: linear-gradient(90deg, #FF6A35, #FF540F);
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ── 질문 ── */
.q-head { margin-bottom: 36px; position: relative; z-index: 1; }
.q-label {
    font-family: var(--script); font-size: 1.9rem;
    color: #FF540F; display: block; margin-bottom: 8px;
}
.q-title {
    font-size: 1.9rem; line-height: 1.4; margin-bottom: 12px;
}
.q-desc { color: var(--light); font-size: 1.05rem; }

/* ── 선택지 ── */
.options { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }

.opt {
    border: 2px solid #F1E9E7;
    padding: 22px 28px;
    border-radius: 16px;
    cursor: pointer;
    display: flex; align-items: center; gap: 18px;
    background: var(--white);
    transition: all 0.2s ease;
    user-select: none;
}
.opt:hover {
    border-color: #FF540F;
    background: rgba(255,84,15,0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,84,15,0.15);
}
.opt.selected {
    border-color: #FF540F;
    background: rgba(255,84,15,0.08);
}

.radio {
    width: 22px; height: 22px; border: 2px solid #DED4D1;
    border-radius: 50%; flex-shrink: 0; position: relative;
    transition: all 0.2s;
}
.opt.selected .radio {
    border-color: #FF540F; background: #FF9A75;
}
.opt.selected .radio::after {
    content: ''; position: absolute;
    width: 7px; height: 7px; background: white; border-radius: 50%;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
}

.opt-text { font-size: 1.1rem; font-weight: 500; }

/* ── 네비 버튼 ── */
.quiz-nav {
    margin-top: 48px; display: flex;
    justify-content: space-between; align-items: center;
    position: relative; z-index: 1;
}

.btn-prev {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 24px; border: none; background: transparent;
    color: var(--light); font-family: var(--sans);
    font-weight: 700; font-size: 1rem; cursor: pointer;
    border-radius: 50px; transition: all 0.2s;
}
.btn-prev:hover { color: var(--text); background: #F5EFED; }
.btn-prev:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-next {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 36px; border: none;
    background: linear-gradient(135deg, #FF6A35, #FF540F); color: #fff;
    font-family: var(--sans); font-weight: 700; font-size: 1rem;
    cursor: pointer; border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255,84,15,0.35);
    transition: all 0.3s ease;
}
.btn-next:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255,84,15,0.5);
}
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── 질문 전환 애니메이션 ── */
.quiz-box.slide-out { animation: slideOut 0.3s ease forwards; }
.quiz-box.slide-in  { animation: slideIn 0.35s ease forwards; }
@keyframes slideOut {
    to { opacity: 0; transform: translateX(-30px); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── 반응형 ── */
@media (max-width: 600px) {
    .quiz-box { padding: 36px 24px; border-radius: 24px; }
    .q-title  { font-size: 1.55rem; }
    .opt      { padding: 18px 20px; gap: 14px; }
    .opt-text { font-size: 1rem; }
    .btn-next { padding: 14px 28px; }
}

/* ───── 게이트 화면 (성인 확인) ───── */
.gate-box {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 60px 40px 50px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  text-align: center;
  overflow: hidden;
}
.gate-title {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 2rem;
  margin: 16px 0 12px;
  color: var(--text, #665853);
}
.gate-desc {
  font-size: 1.05rem;
  color: var(--light, #94857F);
  margin: 0 0 32px;
  line-height: 1.6;
}
.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.gate-btn {
  border: none;
  cursor: pointer;
  padding: 16px 24px;
  border-radius: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.gate-btn-yes {
  background: var(--orange, #FF9A75);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 154, 117, 0.3);
}
.gate-btn-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 154, 117, 0.4);
}
.gate-btn-no {
  background: rgba(0, 0, 0, 0.04);
  color: var(--light, #94857F);
}
.gate-btn-no:hover {
  background: rgba(0, 0, 0, 0.08);
}

/* ───── 차단 화면 ───── */
.blocked-box {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 60px 40px 50px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.blocked-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}
.blocked-title {
  font-family: 'Nanum Myeongjo', serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin: 0 0 12px;
  color: var(--text, #665853);
}
.blocked-desc {
  font-size: 1rem;
  color: var(--light, #94857F);
  margin: 0 0 28px;
}
.blocked-home {
  display: inline-block;
  background: var(--orange, #FF9A75);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.blocked-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 154, 117, 0.4);
}
