/* repeat.css — '단어 맞히기' 페이지의 '같은 질문을 스무 번 하면?' 구역 */

.rep {
  margin-top: 88px;
}

.rep-panel {
  max-width: 980px;
  margin: 0 auto;
  min-height: 0;
  gap: 16px;
}

/* 지금 조건: 고른 문장 · 온도 */
.rep-cond {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 0.98rem;
}

.rep-cond-prompt {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rep-cond-temp {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 1px 10px;
}

.rep-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rep-temps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rep-chip {
  background: var(--track);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--text-dim);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rep-chip strong {
  font-family: Consolas, "Courier New", monospace;
}

.rep-chip:hover,
.rep-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-deep);
}

/* 결과: 답 · 막대 · 나온 횟수 */
.rep-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 96px;
  justify-content: center;
}

.rep-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 32%) 44px;
  gap: 12px;
  align-items: center;
  padding: 4px 0;
}

.rep-text {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.rep-text strong {
  color: var(--accent);
}

.rep-track {
  height: 18px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}

.rep-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.rep-count {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: right;
}

.rep-rest {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.rep-summary {
  font-weight: 700;
}

.rep-summary:empty {
  display: none;
}

.rep-note {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .rep-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 4px 10px;
  }

  .rep-track {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 12px;
  }

  .rep-actions .btn {
    width: 100%;
  }

  .rep-note {
    padding: 12px 14px;
  }
}
