.speaking-stats{display:flex;gap:8px;padding-bottom:16px}
.stat-pill{
  background:rgba(255,255,255,0.12);
  color:#fff;
  font-size:13px;
  font-weight:700;
  padding:6px 12px;
  border-radius:20px;
}
.brand-link{color:inherit;text-decoration:none;display:flex;align-items:center;gap:8px}

.speaking-main{max-width:520px;margin:0 auto;padding:20px 16px}

.view{display:none}
.view.active{display:block}

.unsupported-banner{
  background:#fdecea;
  color:#c0392b;
  border-radius:12px;
  padding:12px 16px;
  font-size:13px;
  margin-bottom:16px;
}

/* 스테이지 맵 */
.stage-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-bottom:20px;
}
.stage-card{
  position:relative;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px 12px;
  cursor:pointer;
  font-family:inherit;
  text-align:center;
  box-shadow:0 4px 14px rgba(43,58,103,0.06);
}
.stage-card.locked{cursor:not-allowed;opacity:0.55}
.stage-card.cleared{border-color:var(--sakura-deep)}
.stage-lock{
  display:none;
  position:absolute;top:10px;right:12px;
  font-size:16px;
}
.stage-card.locked .stage-lock{display:block}
.stage-emoji{font-size:30px;margin-bottom:6px}
.stage-label{font-weight:800;color:var(--indigo-deep);font-size:15px;margin-bottom:10px}
.stage-progress-bar{
  height:6px;background:var(--line);border-radius:6px;overflow:hidden;margin-bottom:6px;
}
.stage-progress-fill{
  height:100%;width:0%;background:var(--sakura-deep);border-radius:6px;
  transition:width .3s;
}
.stage-progress-text{font-size:12px;color:var(--ink-soft);font-weight:700}

.btn-secondary{
  width:100%;
  background:var(--paper);
  color:var(--indigo);
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
  display:flex;align-items:center;justify-content:center;gap:6px;
}
.btn-secondary:hover{background:var(--cream)}

.count-badge{
  display:inline-block;min-width:18px;padding:1px 6px;border-radius:20px;
  background:#FF5050;color:#fff;font-size:11px;font-weight:700;text-align:center;
}

/* 연습 화면 */
.practice-topbar{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;
}
.practice-stage-label{font-weight:800;color:var(--indigo-deep);font-size:15px}
.practice-progress{font-size:13px;font-weight:700;color:var(--sakura-deep)}

.sentence-card{
  background:var(--paper);
  border-radius:var(--radius);
  padding:26px 20px;
  text-align:center;
  box-shadow:0 4px 16px rgba(43,58,103,0.08);
  margin-bottom:18px;
}
.sentence-jp{font-size:24px;font-weight:800;color:var(--indigo-deep);line-height:1.5;margin-bottom:8px}
.sentence-kana{font-size:15px;color:var(--ink-soft);margin-bottom:14px}
.ko-toggle{
  background:none;border:none;color:var(--indigo);font-size:13px;font-weight:700;
  cursor:pointer;font-family:inherit;margin-bottom:6px;
}
.sentence-ko{font-size:14px;color:var(--ink-soft);margin-bottom:12px}
.listen-btn{
  width:auto;border-radius:20px;padding:9px 18px;font-size:13px;font-weight:700;margin:0 auto;
}

.mic-area{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:18px}
.mic-btn{
  width:84px;height:84px;border-radius:50%;
  background:var(--sakura-deep);
  color:#fff;
  border:none;
  font-size:34px;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(224,85,117,0.35);
  transition:transform .15s;
}
.mic-btn:active{transform:scale(0.94)}
.mic-btn.listening{
  background:#e03e3e;
  animation:mic-pulse 1.1s infinite;
}
@keyframes mic-pulse{
  0%{box-shadow:0 0 0 0 rgba(224,62,62,0.45)}
  70%{box-shadow:0 0 0 22px rgba(224,62,62,0)}
  100%{box-shadow:0 0 0 0 rgba(224,62,62,0)}
}
.mic-btn:disabled{opacity:0.4;cursor:not-allowed;animation:none}
.mic-status{font-size:13px;color:var(--ink-soft);font-weight:600}
.recognized-text{
  background:var(--cream);
  border-radius:12px;
  padding:10px 16px;
  font-size:15px;
  font-weight:700;
  color:var(--indigo-deep);
}

.feedback-panel{
  background:var(--paper);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 4px 16px rgba(43,58,103,0.08);
  margin-top:6px;
}
.feedback-stars{font-size:28px;text-align:center;margin-bottom:14px;letter-spacing:4px}
.feedback-row{margin-bottom:12px}
.feedback-label{display:block;font-size:12px;font-weight:800;color:var(--indigo);margin-bottom:3px}
.feedback-row p{font-size:14px;color:var(--ink);line-height:1.5}
.feedback-actions{display:flex;gap:10px;margin-top:16px}
.feedback-actions .btn-secondary,.feedback-actions .btn-primary{margin-top:0}

.fail-hint{
  margin-top:14px;
  text-align:center;
  font-size:14px;
  font-weight:700;
  color:var(--sakura-deep);
  background:rgba(224,85,117,0.08);
  border-radius:12px;
  padding:12px;
}

/* 클리어 애니메이션 */
.clear-celebration{
  text-align:center;
  padding:60px 20px;
}
.clear-emoji{font-size:64px;animation:clear-bounce .8s ease infinite alternate}
@keyframes clear-bounce{
  from{transform:translateY(0) scale(1)}
  to{transform:translateY(-14px) scale(1.08)}
}
.clear-title{font-size:22px;font-weight:800;color:var(--indigo-deep);margin:14px 0 6px}
.clear-desc{font-size:14px;color:var(--ink-soft);margin-bottom:26px}
.clear-celebration .btn-primary,.clear-celebration .btn-secondary{margin-top:10px}

/* 복습 목록 */
.review-list{display:flex;flex-direction:column;gap:10px}
.review-item{
  background:var(--paper);
  border-radius:14px;
  padding:14px 16px;
  box-shadow:0 3px 12px rgba(43,58,103,0.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.review-item-text{flex:1}
.review-item-jp{font-weight:800;color:var(--indigo-deep);font-size:15px}
.review-item-ko{font-size:12px;color:var(--ink-soft);margin-top:2px}
.review-practice-btn{
  flex-shrink:0;
  background:var(--indigo);
  color:#fff;
  border:none;
  border-radius:10px;
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  font-family:inherit;
}
