@font-face {
  font-family: 'DejaVu Sans';
  src: url('fonts/DejaVuSans.ttf') format('truetype');
  font-display: swap;
}

.note-panel {
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
}

.note-staff-wrapper {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(33, 37, 41, 0.15);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(240, 77, 55, 0.05), rgba(255, 255, 255, 0.8));
  padding: 1rem;
}

.note-staff-wrapper svg {
  max-width: 100%;
}

.note-feedback {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(33, 37, 41, 0.7);
  min-height: 1.5rem;
}

.note-feedback.correct {
  color: var(--theme-special);
}

.note-feedback.incorrect {
  color: #a22020;
}

.note-options-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.note-option-btn {
  min-width: 110px;
  max-width: 100%;
  flex: 0 1 calc(33.333% - 0.35rem);
  min-height: 52px;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.note-option-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.note-option-btn.active {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(240, 77, 55, 0.18);
}

#noteHistory li + li {
  margin-top: 0.35rem;
}

#noteHistory .history-correct {
  color: var(--theme-special);
}

#noteHistory .history-incorrect {
  color: #a22020;
}

.btn-pitch-cta {
  background-color: var(--theme-special);
  border: 2px solid var(--theme-special);
  color: var(--theme-lightest);
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pitch-cta:hover {
  background-color: var(--theme-darker);
  border-color: var(--theme-darker);
  color: var(--theme-lightest);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(240, 77, 55, 0.18);
}

.pitch-settings {
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.pitch-checkbox {
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0.75rem;
  padding: 0.6rem 0.85rem;
  background-color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pitch-checkbox:hover,
.pitch-checkbox:focus-within {
  background-color: rgba(240, 77, 55, 0.06);
  border-color: rgba(33, 37, 41, 0.28);
  box-shadow: 0 0 0 3px rgba(240, 77, 55, 0.12);
}

.pitch-checkbox .form-check-input {
  width: 2.5em;
  height: 1.3em;
  accent-color: var(--theme-special);
}

.note-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 auto 0.5rem;
  max-width: 560px;
}

.note-control-btn {
  min-width: 0;
  flex: 1 1 220px;
  max-width: 260px;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f04d37, #ff7b54);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 12px 26px rgba(240, 77, 55, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.note-control-btn:hover,
.note-control-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(240, 77, 55, 0.28);
  filter: brightness(1.05);
}

.note-control-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(240, 77, 55, 0.22), 0 14px 28px rgba(240, 77, 55, 0.28);
}

.reset-control-btn {
  padding: 0.7rem 1.1rem;
  min-width: 180px;
}

@media (max-width: 767.98px) {
  .note-option-btn {
    min-width: 140px;
    flex: 1 1 240px;
  }

  .note-control-btn {
    flex: 1 1 200px;
    max-width: 320px;
    padding: 0.9rem 1.15rem;
  }

  .reset-control-btn {
    min-width: 160px;
    padding: 0.65rem 1rem;
  }

  .note-staff-wrapper {
    min-height: 150px;
  }
}
