body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
}

.poem {
  line-height: 1.9;
  letter-spacing: 0.05em;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .poem {
    font-size: 1.75rem;
    line-height: 2;
  }
}

.poem .segment {
  display: inline-block;
  padding: 0 0.25em;
}

.poem .blank {
  display: inline-block;
  min-width: 5em;
  padding: 0.05em 0.4em;
  margin: 0 0.2em;
  border-bottom: 3px dashed #c00;
  color: #c00;
  font-weight: bold;
}

.poem .blank.filled {
  border-bottom-color: #198754;
  color: #198754;
}

.option-btn {
  min-width: 7em;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .option-btn {
    min-width: 9em;
  }
}

.option-btn.correct {
  background-color: #198754 !important;
  color: white !important;
  border-color: #198754 !important;
}

.option-btn.incorrect {
  background-color: #dc3545 !important;
  color: white !important;
  border-color: #dc3545 !important;
}

#feedback.correct { color: #198754; }
#feedback.incorrect { color: #dc3545; }

#book-list .form-check,
#anthology-list .form-check {
  margin-bottom: 0.15rem;
}

#book-list label,
#anthology-list label {
  cursor: pointer;
}

/* Sidebar styling: offcanvas on mobile, inline column on md+ */
@media (min-width: 768px) {
  aside .card {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

/* On mobile, give the offcanvas-body a little inner padding around the card */
@media (max-width: 767.98px) {
  #sidebar .card {
    border: 0;
    box-shadow: none !important;
  }
  #sidebar .offcanvas-body {
    padding: 0.5rem;
  }
}

/* Compact navbar brand on small screens */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1rem;
  }
}
