body { font-family: Inter, sans-serif; }

.tool-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.04);
}

/* ── Mode / Reverb toggles ── */
.reverb-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 1px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 3px;
}
.reverb-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.reverb-btn.active {
  background: #fff;
  color: #065f46;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* ── Ocarina wrap — centers the instrument ── */
.ocarina-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 4px;
}

/* ── Ocarina body — teardrop/oval shape ── */
.ocarina-body {
  position: relative;
  width: min(320px, calc(100vw - 80px));
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at 38% 35%,
    #d4845a 0%, #b5603a 35%, #8a3e1e 70%, #5c2408 100%);
  border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%;
  box-shadow:
    inset 3px 4px 14px rgba(255,180,100,0.18),
    inset -4px -6px 18px rgba(0,0,0,0.45),
    0 8px 28px rgba(0,0,0,0.22),
    0 2px 6px rgba(0,0,0,0.15);
  overflow: visible;
}

/* Sheen highlight */
.ocarina-body::before {
  content: '';
  position: absolute;
  top: 14px; left: 50px;
  width: 90px; height: 40px;
  background: radial-gradient(ellipse, rgba(255,230,180,0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Mouthpiece ── */
.ocarina-mouthpiece {
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 28px;
  background: linear-gradient(90deg, #7a3a18 0%, #9a4e28 60%, #b5603a 100%);
  border-radius: 6px 0 0 6px;
  box-shadow:
    inset 0 2px 4px rgba(255,160,80,0.15),
    inset 0 -2px 4px rgba(0,0,0,0.4),
    -2px 0 6px rgba(0,0,0,0.2);
}
/* Wind hole slot */
.ocarina-mouthpiece::after {
  content: '';
  position: absolute;
  top: 50%; left: 6px;
  transform: translateY(-50%);
  width: 18px; height: 6px;
  background: #2a0e04;
  border-radius: 3px;
}

/* ── Hole layout containers ── */
/* Top row — 4 main finger holes */
.ocarina-holes {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  align-items: center;
}

/* Bottom row — 4 main finger holes */
.ocarina-holes-bottom {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  align-items: center;
}

/* Thumb holes (right side, stacked) */
.ocarina-thumb-holes {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* ── Individual hole ── */
.o-hole {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
}

.o-hole-circle {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #2e1006, #0e0400);
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,0.85),
    inset 0 -1px 3px rgba(255,120,40,0.08),
    0 1px 2px rgba(255,140,60,0.10);
  transition: transform 0.06s ease, box-shadow 0.06s ease, background 0.06s ease;
  position: relative;
}

/* Main holes */
.o-hole.main .o-hole-circle  { width: 24px; height: 24px; }
/* Thumb holes */
.o-hole.thumb .o-hole-circle { width: 18px; height: 18px; }

/* Pressed state */
.o-hole.pressed .o-hole-circle {
  background: radial-gradient(circle at 35% 35%, #f0a050, #c05010);
  box-shadow: 0 0 10px rgba(255,180,60,0.7), inset 0 1px 3px rgba(0,0,0,0.3);
  transform: scale(0.87);
}

/* ── Note strip below the body ── */
.ocarina-note-strip {
  display: flex;
  gap: 3px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: min(340px, calc(100vw - 64px));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.ocarina-note-strip::-webkit-scrollbar { display: none; }

.note-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px 0 3px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.1s, transform 0.06s;
  flex: 1 1 0;
  min-width: 28px;
  max-width: 40px;
}
.note-pill:active,
.note-pill.pressed {
  background: #d1fae5;
  border-color: #6ee7b7;
  transform: scale(0.93);
}
.note-pill:active .note-pill-solfege,
.note-pill.pressed .note-pill-solfege {
  color: #059669;
}
.note-pill-name {
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  line-height: 1.2;
}
.note-pill-solfege {
  font-size: 7.5px;
  color: #10b981;
  line-height: 1.2;
}
.note-pill-key {
  font-size: 7px;
  color: #9ca3af;
  font-family: monospace;
  line-height: 1.2;
}

/* ── Zelda song buttons ── */
.zelda-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.zelda-btn:hover { background: #f0fdf4; border-color: #6ee7b7; }
.zelda-btn.playing {
  background: #d1fae5;
  border-color: #059669;
}
.zelda-btn-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.zelda-btn-keys {
  font-size: 0.68rem;
  color: #6b7280;
  font-family: monospace;
  margin-top: 2px;
  line-height: 1.3;
}

/* ── Song note display chips ── */
.song-note-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: #e5e7eb;
  color: #374151;
  transition: background 0.08s, color 0.08s;
  font-family: monospace;
}
.song-note-chip.active {
  background: #059669;
  color: #fff;
}

/* ── Ripple ── */
.hole-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  animation: holeRip 0.45s ease-out forwards;
}
@keyframes holeRip {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 0;   transform: scale(2.4); }
}

/* Responsive — scales holes proportionally with the body */
@media (max-width: 380px) {
  .ocarina-holes { gap: 14px; top: 26px; }
  .ocarina-holes-bottom { gap: 14px; bottom: 22px; }
  .ocarina-thumb-holes { right: 18px; gap: 10px; }
  .o-hole.main .o-hole-circle { width: 18px; height: 18px; }
  .o-hole.thumb .o-hole-circle { width: 14px; height: 14px; }
  .ocarina-mouthpiece { width: 26px; height: 20px; left: -20px; }
}

/* Mobile note pills — larger tap targets */
@media (max-width: 640px) {
  .note-pill {
    min-width: 40px;
    max-width: 52px;
    padding: 6px 0 5px;
  }
  .note-pill-name {
    font-size: 12px;
  }
  .note-pill-solfege {
    font-size: 9px;
  }
  .note-pill-key {
    font-size: 8px;
  }
}

tbody tr:nth-child(even) { background: #f9fafb; }
