/* ============================================
   MONE MUSIC — 음역대 테스트 (VRT)
   베이지 80% · 블랙 15% · 퍼플 5%
   ============================================ */

.vrt-page {
  min-height: 80vh;
  padding: 90px 0 60px;
  background: var(--beige-50);
  color: var(--black-800);
}

.vrt-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.vrt-step { display: none; opacity: 0; transition: opacity 0.4s var(--ease); }
.vrt-step--active { display: block; opacity: 1; }

/* ── 버튼 ── */
.vrt-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.vrt-btn--primary { background: var(--purple-600); color: #fff; }
.vrt-btn--primary:hover { background: var(--purple-700); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,93,138,0.35); }
.vrt-btn--primary:active { transform: translateY(0); }
.vrt-btn--large { padding: 1.1rem 2.75rem; font-size: 1.15rem; animation: btnGlow 2s ease-in-out infinite; }
@keyframes btnGlow { 0%,100% { box-shadow: 0 0 8px rgba(232,93,138,0.3); } 50% { box-shadow: 0 0 24px rgba(232,93,138,0.6), 0 0 48px rgba(232,93,138,0.2); } }
.vrt-btn--primary:disabled { background: var(--beige-300); color: var(--black-700); cursor: not-allowed; transform: none; box-shadow: none; }
.vrt-btn--primary:disabled:hover { background: var(--beige-300); transform: none; box-shadow: none; }

/* ── STEP 1: Intro ── */
#vrt-intro { text-align: center; max-width: 640px; margin: 0 auto; padding-top: 60px; }

.vrt-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--navy);
  word-break: keep-all;
}

.vrt-lead { color: var(--black-700); font-size: 1.1rem; font-weight: 400; margin-bottom: 0; word-break: keep-all; }

/* Empty gauge */
.vrt-empty-gauge { margin: 32px auto 28px; max-width: 560px; }

.vrt-empty-gauge__frame {
  display: flex; gap: 1px; height: 56px; padding: 4px;
  background: #fff;
  border: 1px solid rgba(85,162,217,0.3);
  border-radius: 8px;
}

.vrt-empty-gauge__cell {
  flex: 1;
  background: rgba(200,200,200,0.08);
  border: 1px dashed rgba(200,200,200,0.25);
  border-radius: 4px;
}

/* Result gauge (previous result — intro 화면) */
.vrt-result-gauge { position: relative; margin: 28px auto 24px; max-width: 560px; }

.vrt-result-gauge__frame {
  display: flex; gap: 1px; height: 56px; padding: 4px;
  background: #fff;
  border: 1px solid rgba(85,162,217,0.3);
  border-radius: 8px;
}

.vrt-result-gauge__cell {
  flex: 1;
  background: rgba(200,200,200,0.08);
  border: 1px dashed rgba(200,200,200,0.25);
  border-radius: 4px;
}

.vrt-result-gauge__cell--filled { border: none; }

.vrt-result-gauge__labels { position: relative; height: 24px; margin-top: 8px; }

.vrt-result-gauge__label-you {
  position: absolute; transform: translateX(-50%);
  font-size: 12px; color: var(--purple-600); font-weight: 500; white-space: nowrap;
}

.vrt-reassurance { color: var(--black-700); font-size: 14px; margin-top: 16px; line-height: 1.6; word-break: keep-all; }
.vrt-reassurance--muted { color: var(--beige-400); }

/* ── STEP 2: Song Selection ── */
#vrt-song-select { text-align: center; max-width: 820px; margin: 0 auto; padding-top: 40px; }
.vrt-step-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.vrt-step-desc { color: var(--black-700); font-size: 1.05rem; margin-bottom: 40px; }

/* Loading */
#vrt-loading { text-align: center; max-width: 480px; margin: 0 auto; padding-top: 120px; }
.vrt-loading-text { font-size: 1.2rem; font-weight: 600; color: var(--black-800); margin-bottom: 20px; }
.vrt-loading-bar {
  height: 8px; background: var(--beige-200); border-radius: 4px; overflow: hidden;
}
.vrt-loading-fill {
  height: 100%; width: 0%; background: var(--purple-600); border-radius: 4px;
  transition: width 0.3s ease-out;
}
.vrt-loading-fill--done {
  transition: width 0.4s ease;
}

/* Gender selection */
#vrt-gender { text-align: center; max-width: 480px; margin: 0 auto; padding-top: 80px; }
.vrt-gender-wrap .vrt-step-title { margin-bottom: 32px; }
.vrt-gender-btns { display: flex; gap: 16px; justify-content: center; }
.vrt-gender-btn {
  flex: 1; max-width: 180px; padding: 24px 0; font-size: 1.15rem; font-weight: 700;
  font-family: inherit; background: #fff; border: 2px solid var(--beige-200);
  border-radius: var(--radius-lg); cursor: pointer; color: var(--black-800);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.vrt-gender-btn:hover { border-color: var(--purple-600); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(232,93,138,0.2); }
.vrt-gender-btn--selected { border-color: var(--purple-600); background: rgba(232,93,138,0.06); }

.vrt-songs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }

.vrt-song-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff;
  border: 2px solid var(--beige-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: center;
  color: var(--black-800);
  font-family: inherit;
}

.vrt-song-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-600);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.vrt-song-card--selected {
  border-color: var(--purple-600);
  box-shadow: 0 0 20px rgba(232,93,138,0.2), 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.vrt-song-card__level { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--purple-600); font-weight: 600; }
.vrt-song-card__name-en { font-size: 1.25rem; font-weight: 700; margin-top: 4px; }
.vrt-song-card__name-jp { font-size: 0.8rem; color: var(--black-700); font-style: italic; }
.vrt-song-card__artist { font-size: 0.85rem; color: var(--black-700); margin-top: 4px; }
.vrt-song-card__stars { font-size: 1.1rem; color: var(--purple-600); margin-top: 8px; letter-spacing: 2px; }

/* ── STEP 3: Countdown ── */
#vrt-countdown { text-align: center; padding: 80px 0; max-width: 600px; margin: 0 auto; }
.vrt-instruction-text { font-size: 1.15rem; color: var(--black-700); margin-bottom: 40px; line-height: 1.6; }
.vrt-instruction-text strong { color: var(--navy); }

.vrt-countdown__number {
  font-size: 8rem; font-weight: 800; color: var(--purple-600); line-height: 1;
  animation: vrt-pulse 1s ease-in-out infinite;
}

@keyframes vrt-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

/* ── STEP 4: Measuring ── */
#vrt-measuring {
  text-align: center;
}

.vrt-gauge-zone {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; text-align: center;
  margin-bottom: 0; min-height: 16px;
}

.vrt-gauge-zone--stable { color: var(--black-700); }
.vrt-gauge-zone--warming { color: #C48A2A; }
.vrt-gauge-zone--heating { color: #D05A2A; }
.vrt-gauge-zone--overload { color: #C03040; }

.vrt-gauge-note {
  font-size: 36px; font-weight: 700;
  color: var(--purple-600); text-align: center; line-height: 1; margin-bottom: 4px; min-height: 36px;
}

.vrt-gauge-container { position: relative; max-width: 600px; margin: 0 auto; overflow: hidden; }
.vrt-gauge { position: relative; max-width: 600px; margin: 0 auto; }

.vrt-gauge__frame {
  display: flex; gap: 1px; padding: 4px;
  border: 1px solid rgba(85,162,217,0.3);
  border-radius: 8px;
  background: #fff;
  position: relative; transition: border-color 0.2s;
}

.vrt-gauge__cell {
  flex: 1; height: 48px; border-radius: 4px;
  background: rgba(200,200,200,0.08);
  border: 1px dashed rgba(200,200,200,0.25);
  transition: background-color 0.15s ease-out, opacity 0.15s ease-out, border 0.15s ease-out;
}

.vrt-gauge__marker {
  position: absolute; top: 0; bottom: 0; width: 0; z-index: 2; pointer-events: none;
}

.vrt-gauge__marker-arrow {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  font-size: 14px; color: var(--purple-600); line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(232,93,138,0.4));
}

.vrt-gauge__marker-label {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; color: var(--purple-600);
  text-align: center; line-height: 1.4;
  white-space: nowrap;
}

.vrt-gauge-scale {
  display: none;
}

.vrt-sakura-canvas {
  position: absolute; pointer-events: none; z-index: 3;
}

.vrt-pulse-slow { animation: vrtPulseSlow 0.8s ease-in-out infinite; }
.vrt-pulse-fast { animation: vrtPulseFast 0.4s ease-in-out infinite; }
.vrt-flicker { animation: vrtFlicker 0.3s steps(3, end) infinite; }

@keyframes vrtPulseSlow { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes vrtPulseFast { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes vrtFlicker { 0% { opacity: 1; } 33% { opacity: 0.3; } 66% { opacity: 0.9; } 100% { opacity: 0.6; } }

.vrt-jitter-subtle { animation: vrtJitter 0.2s linear infinite; }
.vrt-jitter-strong { animation: vrtJitterStrong 0.1s linear infinite; }

@keyframes vrtJitter {
  0% { transform: translateX(0); } 25% { transform: translateX(-1px); }
  50% { transform: translateX(0); } 75% { transform: translateX(1px); } 100% { transform: translateX(0); }
}

@keyframes vrtJitterStrong {
  0% { transform: translateX(0); } 25% { transform: translateX(-2px); }
  50% { transform: translateX(1px); } 75% { transform: translateX(-1px); } 100% { transform: translateX(0); }
}

.vrt-stop-btn { margin-top: 24px; }

/* ── STEP 5: Results ── */
#vrt-results { text-align: center; max-width: 720px; margin: 0 auto; padding-top: 40px; }

.vrt-results__title { font-size: 2.2rem; font-weight: 800; margin-bottom: 32px; letter-spacing: -0.02em; }
.vrt-results__title--reached { color: #4CAF50; }
.vrt-results__title--not-reached { color: var(--navy); }

.vrt-results__song-info { margin-bottom: 32px; }

.vrt-results__song-row { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin-bottom: 4px; }
.vrt-results__song-name { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.vrt-results__try-again { font-size: 1.1rem; color: var(--black-700); text-decoration: none; transition: color 0.2s; }
.vrt-results__try-again:hover { color: var(--purple-600); }
.vrt-results__song-artist { display: block; font-size: 0.95rem; color: var(--black-700); }

/* Result gauge */
.vrt-gauge--static { padding-bottom: 28px; }
.vrt-gauge--static .vrt-gauge__frame {
  background: #fff;
  border-color: rgba(85,162,217,0.3);
}
.vrt-gauge--static .vrt-gauge__cell {
  background: rgba(200,200,200,0.08);
  border: 1px dashed rgba(200,200,200,0.25);
}
.vrt-gauge--static .vrt-gauge__marker-arrow { color: var(--purple-600); }
.vrt-gauge--static .vrt-gauge__marker-label { color: var(--purple-600); }

/* Brackets */
.vrt-bracket { display: none; }

.vrt-bracket--above {
  top: 4px;
  border-top: 1px solid var(--purple-600); border-left: 1px solid var(--purple-600); border-right: 1px solid var(--purple-600);
}

.vrt-bracket--below {
  bottom: 0;
  border-bottom: 1px solid var(--black-700); border-left: 1px solid var(--black-700); border-right: 1px solid var(--black-700);
  opacity: 0.5;
}

.vrt-bracket__label {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: 'Courier New', monospace; font-size: 11px; white-space: nowrap;
}

.vrt-bracket--above .vrt-bracket__label { bottom: 100%; margin-bottom: 2px; color: var(--purple-600); }
.vrt-bracket--below .vrt-bracket__label { top: 100%; margin-top: 2px; color: var(--black-700); }

/* Verdict badge */
.vrt-results__gauge { margin-bottom: 12px; }
.vrt-results__verdict { margin-bottom: 36px; }

.vrt-verdict__badge { display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 6px 20px; border-radius: 50px; }
.vrt-verdict__badge--reached { background: rgba(76,175,80,0.1); color: #4CAF50; border: 1px solid rgba(76,175,80,0.25); }
.vrt-verdict__badge--gap { background: rgba(232,93,138,0.08); color: #E85D8A; border: 1px solid rgba(232,93,138,0.2); }

/* ── Desire Checklist ── */
.vrt-fit { text-align: center; margin-top: 8px; }
.vrt-fit__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: var(--navy); }
.vrt-fit__sub { font-size: 1.1rem; font-weight: 600; color: var(--black-700); margin: -12px 0 20px; }
.vrt-fit__questions { display: flex; flex-direction: column; text-align: left; }

.vrt-fit__item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  cursor: pointer; border-bottom: 1px solid var(--beige-200);
  transition: background-color 0.15s; user-select: none;
}
.vrt-fit__item:first-child { border-top: 1px solid var(--beige-200); }
.vrt-fit__item:hover { background: var(--beige-100); }

.vrt-fit__checkbox { display: none; }

.vrt-fit__check-icon {
  width: 24px; height: 24px; border: 2px solid var(--beige-300); border-radius: 6px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-size: 0.8rem; color: transparent;
}
.vrt-fit__check-icon::after { content: '\2713'; }

.vrt-fit__checkbox:checked + .vrt-fit__check-icon { background-color: var(--purple-600); border-color: var(--purple-600); color: #fff; }
.vrt-fit__checkbox:checked ~ .vrt-fit__text { color: var(--navy); }
.vrt-fit__text { color: var(--black-700); font-size: 1rem; line-height: 1.4; transition: color 0.2s; }

/* Score */
.vrt-fit__score { text-align: center; margin: 2.5rem 0 1.5rem; font-size: 2rem; font-weight: 700; color: var(--black-800); }
.vrt-fit__score #vrt-fit-score { color: var(--purple-600); font-size: 3rem; }
.vrt-fit__grade-line { font-size: 1.1rem; font-weight: 600; margin-top: 8px; }
.vrt-fit-grade--possible { color: var(--black-700); }
.vrt-fit-grade--strong { color: #E8A04B; }
.vrt-fit-grade--perfect { color: var(--purple-600); }

/* CTA Section */
.vrt-cta { text-align: center; animation: vrtCtaFade 0.4s ease; }

@keyframes vrtCtaFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vrt-cta__headline { font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.vrt-cta__desc { font-size: 0.9rem; color: var(--black-700); margin-bottom: 20px; }

.vrt-cta__btn {
  display: block; width: 100%; padding: 16px; font-size: 1rem; font-weight: 600;
  color: #fff; background: var(--purple-600); border: none; border-radius: var(--radius-lg);
  cursor: pointer; transition: background 0.2s, transform 0.2s; text-align: center; text-decoration: none;
}
.vrt-cta__btn:hover { background: var(--purple-700); transform: translateY(-1px); color: #fff; }
.vrt-cta__btn--google { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; padding: 16px 32px; }
.vrt-google-icon { flex-shrink: 0; }

/* Previous comparison */
.vrt-prev { font-family: 'Courier New', monospace; font-size: 13px; color: var(--purple-600); text-align: center; margin-top: 16px; }

/* ── 반응형 ── */
@media (max-width: 700px) {
  .vrt-title { font-size: 1.8rem; }
  .vrt-songs { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .vrt-gauge-note { font-size: 28px; }
  .vrt-gauge__cell { height: 22px; }
  #vrt-intro { padding-top: 30px; }
  .vrt-results__title { font-size: 1.6rem; }
  .vrt-bracket__label { font-size: 10px; }
  .vrt-fit__item { padding: 0.875rem 1rem; gap: 0.75rem; }
  .vrt-fit__text { font-size: 0.9rem; }
  .vrt-fit__score #vrt-fit-score { font-size: 2.5rem; }
  .vrt-fit__grade-line { font-size: 1rem; }
}
