.flashcard-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flashcard-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 0;
}

.flashcard-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 660px;
}

.flashcard-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(255, 250, 239, .68);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(104, 69, 22, .13);
  box-shadow: 0 18px 48px rgba(86, 57, 17, .09);
  backdrop-filter: blur(16px);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
}

.input-group label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}

.selection-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(95, 72, 35, .14);
  border-radius: 999px;
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--blue);
  box-shadow: 0 6px 16px rgba(63, 124, 172, .25);
  cursor: pointer;
}

.amount-display {
  font-weight: 800;
  color: var(--blue-deep);
  min-width: 44px;
  text-align: right;
  font-size: 1.1rem;
}

.flashcard-error {
  color: var(--red);
  font-size: 0.9rem;
  background: rgba(183, 91, 77, 0.08);
  border: 1px solid rgba(183, 91, 77, 0.2);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  background: rgba(95, 72, 35, .08);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  width: fit-content;
  gap: 4px;
}

.radio-item {
  position: relative;
  min-width: 120px;
}

.radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--muted);
  transition: all .25s var(--ease);
  white-space: nowrap;
}

.radio-item input[type="radio"]:checked + .radio-label {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(63, 124, 172, .25);
}

.radio-item:hover .radio-label {
  color: var(--ink);
}

.loading-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(63, 124, 172, .16);
}

.flashcard-result-panel {
  background: rgba(255, 250, 239, .68);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(104, 69, 22, .13);
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 18px 48px rgba(86, 57, 17, .09);
  backdrop-filter: blur(16px);
}

.flashcard-result-panel h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-family: Georgia, serif;
  color: var(--ink);
}

.flashcard-result-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.flashcard-result-item {
  border: 1px solid rgba(82, 54, 17, .12);
  background: rgba(255,255,255,.52);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.flashcard-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.flashcard-result-header span {
  color: var(--muted);
  font-size: 0.85rem;
}

.flashcard-result-meta {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .flashcard-form {
    padding: 1.2rem;
  }

  .flashcard-result-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
