* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  max-width: 720px;
  margin: 32px auto;
  padding: 0 16px;
  color: #111;
}

h1 { text-align: center; margin-bottom: 16px; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.controls select, .controls input[type="range"] {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.controls .vol { min-width: 220px; }

.stop {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.stop:hover { filter: brightness(0.95); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.note-btn {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 14px 10px;
  background: #f9fafb;
  cursor: pointer;
  text-align: center;
  transition: transform 0.04s ease, background 0.2s ease;
  user-select: none;
}
.note-btn:hover { background: #f3f4f6; }
.note-btn:active { transform: scale(0.98); }

.note-name {
  font-size: 22px;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}
.note-alt {
  font-size: 14px;
  color: #555;
  display: block;
  margin-top: 2px;
}

.hint {
  text-align: center;
  color: #555;
  margin-top: 14px;
  font-size: 14px;
}

