/* ═══════════���═══════════════════════════
   Quiz Event V5 Styles
   한국과학창의재단 AI 퀴즈대회
   Blue / Navy / Gold Theme
   ══════════════════════════��════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
  --qz-bg: #DFEEFF;
  --qz-white: #fff;
  --qz-text: #192D83;
  --qz-muted: #4A6080;
  --qz-p1: #3B82F6;
  --qz-p2: #60A5FA;
  --qz-p3: #FBBF24;
  --qz-p4: #FBBF24;
  --qz-correct: #059669;
  --qz-cbg: #ecfdf5;
  --qz-cbd: #6ee7b7;
  --qz-wrong: #dc2626;
  --qz-wbg: #fef2f2;
  --qz-wbd: #fca5a5;
  --qz-bd: rgba(59,130,246,0.25);
  --qz-navy: #192D83;
  --qz-input-bg: #F0F8FF;
}

/* ═══════════ RESET ═════════���═ */
.quiz-body *,
.quiz-body *::before,
.quiz-body *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ═══════════ BASE ═══════════ */
.quiz-body {
  margin: 0;
  padding: 0;
  background: var(--qz-bg);
  color: var(--qz-text);
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.quiz-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(59,130,246,.12) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(117,225,247,.08) 1px, transparent 1px);
  background-size: 48px 48px, 24px 24px;
  background-position: 0 0, 12px 12px;
  pointer-events: none;
  z-index: 0;
}

/* Blobs */
.qz-blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: qzBlobFloat 8s ease-in-out infinite;
}
.qz-b1 { width: 360px; height: 360px; background: rgba(117,225,247,.22); top: -100px; left: -100px; }
.qz-b2 { width: 280px; height: 280px; background: rgba(251,191,36,.12); bottom: -80px; right: -80px; animation-delay: -3s; }
.qz-b3 { width: 170px; height: 170px; background: rgba(59,130,246,.10); top: 40%; left: 65%; animation-delay: -5s; }
.qz-b4 { width: 110px; height: 110px; background: rgba(133,191,255,.15); top: 15%; right: 5%; animation-delay: -2s; }

/* Animations */
@keyframes qzBlobFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-18px) scale(1.04); } }
@keyframes qzPopIn { from { opacity: 0; transform: scale(.93) translateY(18px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes qzSlideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes qzBounceIn { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes qzShakeX { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes qzPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes qzFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Wrap */
.qz-wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 22px 16px 80px;
}

.qz-screen {
  animation: qzPopIn .42s cubic-bezier(.34,1.56,.64,1);
}

/* ═══════════ TOP BAR ════════���══ */
.qz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--qz-navy);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(25,45,131,.22);
}
.qz-logo-main {
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  line-height: 1.3;
}
.qz-logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,.6);
  letter-spacing: .3px;
}
.qz-user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.qz-user-chip-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ═══════════ CARD ═══════════ */
.qz-card {
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 10px 36px rgba(59,130,246,.11);
  border: 2px solid var(--qz-bd);
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.qz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #192D83, #2563EB, #3B82F6, #60A5FA, #FBBF24);
}

/* ═══════════ AUTH / START ═══════════ */
.qz-auth-emblem {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 26px rgba(59,130,246,.3);
  animation: qzBlobFloat 4s ease-in-out infinite;
}
.qz-auth-title {
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 3px;
  background: linear-gradient(135deg, var(--qz-p1), var(--qz-p3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qz-auth-sub {
  font-size: 12px;
  color: var(--qz-muted);
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* Form */
.qz-form-group { margin-bottom: 14px; }
.qz-form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--qz-text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.qz-req { color: var(--qz-p3); }

.qz-input {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid rgba(59,130,246,.17);
  border-radius: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  color: var(--qz-text);
  background: var(--qz-input-bg);
  outline: none;
  transition: all .2s;
  box-sizing: border-box;
}
.qz-input:focus {
  border-color: var(--qz-p1);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.09);
}
.qz-input::placeholder { color: #93C5FD; }
.qz-input.qz-err { border-color: var(--qz-wrong); background: var(--qz-wbg); }
.qz-input.qz-ok { border-color: var(--qz-correct); background: var(--qz-cbg); }

.qz-phone-row { display: flex; gap: 8px; }
.qz-phone-row .qz-input { flex: 1; }

.qz-send-btn {
  flex-shrink: 0;
  padding: 13px 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: linear-gradient(135deg, #3B82F6, #60A5FA) !important;
  border: none;
  border-radius: 13px;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.qz-send-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(59,130,246,.32);
}
.qz-send-btn:disabled {
  background: linear-gradient(135deg, #93C5FD, #FDE68A) !important;
  cursor: not-allowed;
}

.qz-code-row { display: flex; gap: 8px; margin-top: 9px; width: 100%; }
.qz-code-inp {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 2px solid rgba(59,130,246,.17);
  border-radius: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--qz-text);
  background: var(--qz-input-bg);
  outline: none;
  transition: all .2s;
  letter-spacing: 5px;
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 420px) {
  .qz-code-inp { letter-spacing: 3px; font-size: 15px; padding: 12px 10px; }
}
.qz-code-inp:focus {
  border-color: var(--qz-p1);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.09);
}
.qz-code-inp.qz-ok { border-color: var(--qz-correct); background: var(--qz-cbg); }
.qz-code-inp.qz-err { border-color: var(--qz-wrong); background: var(--qz-wbg); }

.qz-verify-btn {
  flex-shrink: 0;
  padding: 13px 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff !important;
  border: 2px solid #3B82F6;
  border-radius: 13px;
  color: #3B82F6;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.qz-verify-btn:hover:not(:disabled) {
  background: #3B82F6 !important;
  color: #fff;
}
.qz-verify-btn:disabled { opacity: .38; cursor: not-allowed; }

.qz-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
  min-height: 20px;
}
.qz-timer {
  font-size: 12px;
  font-weight: 700;
  color: var(--qz-p3);
  animation: qzPulse 1s infinite;
}
.qz-smsg { font-size: 11px; font-weight: 600; }
.qz-smsg-ok { color: var(--qz-correct); }
.qz-smsg-err { color: var(--qz-wrong); }
.qz-smsg-info { color: var(--qz-muted); }

/* CTA Button */
.qz-cta-btn {
  width: 100%;
  padding: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: linear-gradient(135deg, #3B82F6, #FBBF24) !important;
  border: none;
  border-radius: 15px;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 5px 22px rgba(59,130,246,.34);
  transition: all .2s;
  text-decoration: none;
  display: block;
  text-align: center;
  box-sizing: border-box;
}
.qz-cta-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 9px 30px rgba(59,130,246,.44);
  color: #fff;
}
.qz-cta-btn:disabled {
  background: linear-gradient(135deg, #93C5FD, #FDE68A) !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ═══════════ TERMS (AGREE) ══════��════ */
.qz-agree-box {
  background: var(--qz-input-bg);
  border: 1.5px solid rgba(59,130,246,.13);
  border-radius: 13px;
  padding: 13px 15px;
  margin-bottom: 15px;
}
.qz-agree-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 7px;
}
.qz-agree-row:last-child { margin-bottom: 0; }

.qz-achk {
  width: 17px;
  height: 17px;
  border: 2px solid var(--qz-p2);
  border-radius: 5px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all .2s;
  position: relative;
}
.qz-achk:checked {
  background: linear-gradient(135deg, var(--qz-p1), var(--qz-p2));
  border-color: var(--qz-p1);
}
.qz-achk:checked::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.qz-atxt {
  font-size: 11px;
  color: var(--qz-muted);
  line-height: 1.5;
}
.qz-atxt a { color: var(--qz-p1); text-decoration: underline; cursor: pointer; }
.qz-atxt-all { font-size: 12px; font-weight: 700; color: var(--qz-text); }

.qz-terms-content {
  max-height: 130px;
  overflow-y: auto;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(59,130,246,.1);
  border-radius: 10px;
  margin: 6px 0 10px 26px;
  font-size: 11px;
  color: var(--qz-muted);
  line-height: 1.6;
}
.qz-terms-content p { margin: 3px 0; }
.qz-terms-content strong { color: var(--qz-text); }

.qz-divider {
  height: 1px;
  background: rgba(59,130,246,.1);
  margin: 9px 0;
}

/* ════���══════ QUIZ ═══════════ */
.qz-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 13px;
}
.qz-badge-mcq {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.06));
  color: var(--qz-p1);
  border: 1.5px solid rgba(59,130,246,.2);
}
.qz-badge-ox {
  background: linear-gradient(135deg, #e0f2fe, #ecfdf5);
  color: #0284c7;
  border: 1.5px solid rgba(6,182,212,.22);
}
.qz-badge-short {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1.5px solid rgba(245,158,11,.25);
}

.qz-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--qz-input-bg);
  border: 1.5px solid var(--qz-bd);
  font-size: 11px;
  color: var(--qz-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.qz-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--qz-text);
  margin-bottom: 22px;
  letter-spacing: -.2px;
}

/* Options */
.qz-opt-list { display: flex; flex-direction: column; gap: 9px; }
.qz-opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--qz-input-bg);
  border: 2px solid rgba(59,130,246,0.2);
  border-radius: 13px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--qz-text);
  text-align: left;
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  width: 100%;
}
.qz-opt-btn:hover:not(:disabled):not(.qz-selected) {
  border-color: var(--qz-p2);
  background: #EFF8FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59,130,246,.11);
}
.qz-opt-btn.qz-selected {
  border-color: var(--qz-p1);
  background: linear-gradient(135deg, #EFF8FF, #EFF8FF);
  box-shadow: 0 4px 14px rgba(59,130,246,.15);
}
.qz-opt-btn.qz-selected .qz-opt-num {
  background: linear-gradient(135deg, var(--qz-p1), var(--qz-p3));
  color: #fff;
}
.qz-opt-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--qz-p1);
  transition: all .2s;
}
.qz-opt-btn:hover:not(:disabled) .qz-opt-num {
  background: linear-gradient(135deg, var(--qz-p1), var(--qz-p3));
  color: #fff;
}

/* OX */
.qz-ox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qz-ox-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 12px;
  gap: 8px;
  background: var(--qz-input-bg);
  border: 2.5px solid rgba(59,130,246,0.2);
  border-radius: 18px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.qz-ox-btn:hover:not(:disabled) { transform: translateY(-4px) scale(1.02); }
.qz-ox-sym { font-size: 42px; line-height: 1; transition: transform .25s; }
.qz-ox-lbl { font-weight: 700; font-size: 13px; letter-spacing: .8px; color: var(--qz-muted); }
.qz-ox-btn.qz-o-btn:hover:not(:disabled) { border-color: var(--qz-correct); background: var(--qz-cbg); }
.qz-ox-btn.qz-o-btn:hover:not(:disabled) .qz-ox-lbl { color: var(--qz-correct); }
.qz-ox-btn.qz-x-btn:hover:not(:disabled) { border-color: var(--qz-wrong); background: var(--qz-wbg); }
.qz-ox-btn.qz-x-btn:hover:not(:disabled) .qz-ox-lbl { color: var(--qz-wrong); }
.qz-ox-btn.qz-selected.qz-o-btn { border-color: var(--qz-correct); background: var(--qz-cbg); }
.qz-ox-btn.qz-selected.qz-x-btn { border-color: var(--qz-wrong); background: var(--qz-wbg); }

/* Short answer */
.qz-short-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(59,130,246,0.2);
  border-radius: 13px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--qz-text);
  background: var(--qz-input-bg);
  outline: none;
  transition: all .2s;
  text-align: center;
  box-sizing: border-box;
}
.qz-short-input:focus {
  border-color: var(--qz-p1);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.09);
}
.qz-short-input::placeholder { color: #93C5FD; }

/* Submit */
.qz-submit-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: linear-gradient(135deg, #3B82F6, #FBBF24) !important;
  border: none;
  border-radius: 13px;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(59,130,246,.3);
  transition: all .2s;
}
.qz-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 9px 28px rgba(59,130,246,.4);
}
.qz-submit-btn:disabled {
  background: linear-gradient(135deg, #93C5FD, #FDE68A) !important;
  cursor: not-allowed;
}

/* Result buttons */
.qz-rb {
  flex: 1;
  padding: 13px;
  background: #fff;
  border: 2.5px solid var(--qz-p1);
  border-radius: 13px;
  color: var(--qz-p1);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  text-align: center;
}
.qz-rb:hover {
  background: var(--qz-p1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(59,130,246,.24);
}
.qz-rb.qz-sec { border-color: var(--qz-p3); color: var(--qz-p3); }
.qz-rb.qz-sec:hover {
  background: var(--qz-p3);
  color: #fff;
  box-shadow: 0 5px 16px rgba(251,191,36,.22);
}

/* Main back button (navy) */
.qz-main-back-btn {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 13px;
  background: var(--qz-navy);
  border: none;
  border-radius: 13px;
  color: #fff;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.qz-main-back-btn:hover { background: #2563EB; transform: translateY(-2px); box-shadow: 0 5px 16px rgba(25,45,131,.28); }

/* ═══════════ NOTICE / EMPTY ══════════��� */
.qz-empty-box {
  text-align: center;
  padding: 40px 20px;
}
.qz-empty-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 14px;
}
.qz-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--qz-text);
  margin-bottom: 8px;
}
.qz-empty-desc {
  font-size: 13px;
  color: var(--qz-muted);
  line-height: 1.6;
}

/* ═══════════ FOOTER ═════��═════ */
.qz-footer-text {
  text-align: center;
  margin-top: 11px;
  font-size: 14px;
  color: var(--qz-muted);
  line-height: 1.7;
}
.qz-footer-text strong {
  color: #1D4ED8;
  font-weight: 900;
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qz-quiz-footer {
  margin-top: 32px;
  padding: 20px 8px 32px;
  text-align: center;
  border-top: 1.5px dashed rgba(59,130,246,.2);
}

/* ═══════════ DEBUG ════���══════ */
.qz-debug {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1.5px solid rgba(59,130,246,.3);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 11px;
  color: #92400e;
  font-weight: 600;
}

/* ═��═════════ FULLSCREEN POPUP ══════���════ */
.qz-fp-overlay {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,5,30,.65);
  backdrop-filter: blur(8px);
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.qz-fp-overlay.qz-open { display: flex !important; animation: qzFadeIn .3s ease; }
.qz-fp-card {
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  margin: auto 0;
  flex-shrink: 0;
  animation: qzPopIn .45s cubic-bezier(.34,1.56,.64,1);
}
.qz-fp-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 28px 28px 0 0; z-index: 1; }

/* ═══════════ WIN POPUP ═══════════ */
.qz-fp-win .qz-fp-card { background: #fff; box-shadow: 0 30px 80px rgba(59,130,246,.3); }
.qz-fp-win .qz-fp-card::before { background: linear-gradient(90deg, #3B82F6, #FBBF24, #FBBF24); }

.qz-win-confetti { text-align: center; padding: 28px 22px 0; }
.qz-win-trophy {
  width: 96px; height: 96px; border-radius: 26px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; box-shadow: 0 10px 32px rgba(59,130,246,.38);
  animation: qzBounceIn .6s cubic-bezier(.34,1.56,.64,1) .15s both;
}
.qz-win-popup-title {
  font-size: 26px; font-weight: 900; letter-spacing: -.4px; margin-bottom: 6px;
  background: linear-gradient(135deg, #D97706, #FBBF24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.qz-win-popup-sub { font-size: 13px; color: var(--qz-muted); line-height: 1.7; margin-bottom: 18px; font-weight: 500; }
.qz-win-popup-prize {
  display: inline-block; padding: 6px 20px; border-radius: 99px; margin-bottom: 18px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e; font-size: 13px; font-weight: 700;
  border: 1.5px solid rgba(59,130,246,.45);
}

.qz-wi-form { padding: 0 22px 26px; }
.qz-wi-notice {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
  border: 1.5px solid rgba(59,130,246,.25);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; text-align: center;
  font-size: 13px; color: #92400e; line-height: 1.7;
}
.qz-wi-submit {
  width: 100%; padding: 15px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, #192D83, #2563EB, #3B82F6) !important;
  border: none; border-radius: 14px; color: #fff;
  font-family: 'Noto Sans KR', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 5px 22px rgba(25,45,131,.35); transition: all .2s;
}
.qz-wi-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 9px 28px rgba(25,45,131,.5); }
.qz-wi-submit:disabled { background: linear-gradient(90deg, #BFDBFE, #93C5FD) !important; cursor: not-allowed; }

.qz-wi-done { display: none; text-align: center; padding: 32px 24px; }
.qz-wi-done-icon { font-size: 60px; margin-bottom: 14px; animation: qzBounceIn .6s cubic-bezier(.34,1.56,.64,1) both; }
.qz-wi-done-title { font-size: 20px; font-weight: 900; margin-bottom: 8px; color: var(--qz-correct); }
.qz-wi-done-desc { font-size: 13px; color: var(--qz-muted); line-height: 1.75; margin-bottom: 22px; }
.qz-wi-done-btn {
  width: 100%; padding: 14px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, #192D83, #2563EB) !important;
  border: none; border-radius: 14px; color: #fff;
  font-family: 'Noto Sans KR', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 5px 20px rgba(25,45,131,.32); transition: all .2s;
}
.qz-wi-done-btn:hover { transform: translateY(-2px); }

/* ═════���═════ LOSE POPUP ═══════════ */
.qz-fp-lose .qz-fp-card {
  background: linear-gradient(160deg, #0C1B5A 0%, #192D83 50%, #0C1B5A 100%);
  box-shadow: 0 30px 80px rgba(12,27,90,.55); color: #fff;
}
.qz-fp-lose .qz-fp-card::before { background: linear-gradient(90deg, #192D83, #2563EB, #3B82F6, #FBBF24); }

.qz-lose-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.qz-lose-star { position: absolute; font-size: 16px; opacity: .12; animation: qzBlobFloat 6s ease-in-out infinite; }
.qz-lose-star:nth-child(1) { top: 12%; left: 8%; }
.qz-lose-star:nth-child(2) { top: 20%; right: 10%; animation-delay: -2s; font-size: 10px; }
.qz-lose-star:nth-child(3) { bottom: 25%; left: 10%; animation-delay: -4s; font-size: 12px; }
.qz-lose-star:nth-child(4) { bottom: 15%; right: 8%; animation-delay: -1s; }

.qz-lose-inner { padding: 36px 26px 30px; text-align: center; }
.qz-lose-icon { font-size: 70px; margin-bottom: 18px; display: block; animation: qzBounceIn .6s cubic-bezier(.34,1.56,.64,1) .1s both; }
.qz-lose-title {
  font-size: 26px; font-weight: 900; margin-bottom: 10px; letter-spacing: -.4px;
  background: linear-gradient(135deg, #93C5FD, #FDE68A);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.qz-lose-sub { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.8; margin-bottom: 24px; }

.qz-lose-info {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 16px 18px; margin-bottom: 24px; text-align: left;
}
.qz-lose-info-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.qz-lose-info-row:last-child { margin-bottom: 0; }
.qz-lil { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 600; }
.qz-liv { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }

.qz-lose-retry {
  background: rgba(59,130,246,.2); border: 1.5px solid rgba(59,130,246,.35);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px; text-align: left;
}
.qz-lose-retry-icon { font-size: 28px; flex-shrink: 0; }
.qz-lose-retry-text { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.6; }
.qz-lose-retry-text strong { color: #BFDBFE; display: block; margin-bottom: 2px; font-size: 13px; }

.qz-lose-btn {
  width: 100%; padding: 15px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(135deg, #3B82F6, #60A5FA) !important;
  border: none; border-radius: 14px; color: #fff;
  font-family: 'Noto Sans KR', sans-serif; font-size: 15px; font-weight: 700;
  cursor: pointer; box-shadow: 0 5px 22px rgba(59,130,246,.45); transition: all .2s;
}
.qz-lose-btn:hover { transform: translateY(-2px); box-shadow: 0 9px 30px rgba(59,130,246,.6); }

.qz-lose-main-btn {
  display: block; width: 100%; margin-top: 10px; padding: 14px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 14px; color: rgba(255,255,255,.85);
  font-family: 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: 700;
  text-decoration: none; text-align: center; transition: all .2s; box-sizing: border-box;
}
.qz-lose-main-btn:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }
