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

:root {
  /* Oboe body — dark African blackwood / rosewood */
  --ob-wood-light:  #4a2818;
  --ob-wood-mid:    #2e1608;
  --ob-wood-dark:   #180a02;
  --ob-wood-grain:  rgba(80, 45, 20, 0.35);

  /* Silver keywork */
  --ob-silver-light: #eef0f3;
  --ob-silver-mid:   #c8cdd4;
  --ob-silver-dark:  #9aa0a8;

  /* Gold pad */
  --ob-pad-open:  #0e0806;
  --ob-gold:      #c8a84a;
  --ob-gold-dark: #9a7830;

  /* Accent */
  --ob-amber:     #f59e0b;
  --ob-amber-dim: rgba(245,158,11,0.15);
}

.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);
}

.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; white-space: nowrap;
}
.reverb-btn.active { background: #fff; color: #92400e; box-shadow: 0 1px 4px rgba(0,0,0,0.10); }

/* ── Instrument container ── */
.flute-body {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; padding: 14px 0 8px;
}

/* ── Oboe visual ──
   Oboe is ~65cm — similar length to clarinet but conical bore
   (wider at bell end). Distinctive long, thin profile.
   Body: dark rosewood/blackwood, silver keywork throughout.
*/
.flute-instrument {
  display: flex; flex-direction: row; align-items: center;
  width: 100%; max-width: 460px; height: 48px; position: relative;
}

/* Reed end — very narrow, slightly flared tip */
.flute-crown {
  width: 14px; height: 10px;
  background: linear-gradient(180deg, #6b4a2a 0%, #3a2010 60%, #1e1006 100%);
  border-radius: 4px 1px 1px 4px;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.12),
    inset 0 -1px 2px rgba(0,0,0,0.5),
    0 1px 4px rgba(0,0,0,0.4);
  position: relative;
}
/* Reed tip highlight */
.flute-crown::before {
  content: '';
  position: absolute;
  left: 2px; top: 1px;
  width: 4px; height: 8px;
  background: rgba(180,140,80,0.4);
  border-radius: 2px;
}

/* Upper joint — narrow, wood */
.flute-head {
  width: 40px; height: 18px;
  background:
    repeating-linear-gradient(90deg, var(--ob-wood-grain) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, var(--ob-wood-light) 0%, var(--ob-wood-mid) 55%, var(--ob-wood-dark) 100%);
  position: relative; flex-shrink: 0;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.07),
    inset 0 -2px 3px rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
}
/* Octave key hole */
.flute-embouchure {
  width: 5px; height: 5px;
  background: rgba(0,0,0,0.95);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,1), 0 0 0 1px var(--ob-silver-dark);
}

/* Main body — conical, slightly widens toward bell */
.flute-tube {
  flex: 1; height: 22px;
  background:
    repeating-linear-gradient(90deg, var(--ob-wood-grain) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, var(--ob-wood-light) 0%, var(--ob-wood-mid) 50%, var(--ob-wood-dark) 100%);
  border-top: 1px solid rgba(100,65,30,0.5);
  border-bottom: 1px solid rgba(0,0,0,0.6);
  position: relative;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.06),
    inset 0 -2px 3px rgba(0,0,0,0.45);
}

/* Key pads */
.flute-key-display {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; height: 100%; padding: 0 8px;
}

.tube-key-pad {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ob-pad-open);
  border: 1.5px solid var(--ob-silver-mid);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.95);
  transition: background 0.08s, box-shadow 0.08s, border-color 0.08s;
  flex-shrink: 0;
}
.tube-key-pad.active {
  background: radial-gradient(circle at 38% 35%, #e8c060, var(--ob-gold) 60%, var(--ob-gold-dark));
  border-color: var(--ob-gold-dark);
  box-shadow: inset 0 1px 2px rgba(255,220,100,0.5), 0 0 5px rgba(200,168,74,0.6);
}

/* Bell — flared, wider at end, wood */
.flute-foot {
  width: 28px; height: 40px;
  background:
    linear-gradient(180deg, var(--ob-wood-mid) 0%, var(--ob-wood-dark) 60%, #0a0400 100%);
  border-radius: 2px 16px 20px 2px;
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.05),
    inset 0 -3px 8px rgba(0,0,0,0.75),
    0 3px 10px rgba(0,0,0,0.45);
  flex-shrink: 0;
  border-top: 1.5px solid var(--ob-silver-dark);
  border-bottom: 1.5px solid var(--ob-silver-dark);
}

/* ── Notes grid ── */
.notes-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 5px; width: 100%; max-width: 580px;
}

/* ── Note buttons — warm amber/amber-dark palette ── */
.note-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 50px; min-height: 62px;
  border-radius: 9px; cursor: pointer;
  user-select: none; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  border: 1.5px solid rgba(120,70,20,0.45);
  background: linear-gradient(160deg, #3d1f08 0%, #261208 55%, #150900 100%);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.22),
    inset 0 1px 2px rgba(255,180,80,0.07),
    inset 0 -1px 2px rgba(0,0,0,0.35);
  transition: transform 0.07s, box-shadow 0.07s, background 0.07s, border-color 0.07s;
  position: relative; overflow: hidden;
}
.note-btn::before {
  content: '';
  position: absolute; top: 0; left: 12%; width: 16%; height: 100%;
  background: linear-gradient(180deg, rgba(255,180,80,0.12), rgba(255,180,80,0.01));
  border-radius: 999px; pointer-events: none;
}
.note-btn:active, .note-btn.struck {
  transform: translateY(2px) scale(0.96);
  background: linear-gradient(160deg, #7c3a0a 0%, #4a2006 55%, #280e02 100%);
  box-shadow:
    0 0 18px rgba(245,158,11,0.50),
    0 0 6px rgba(245,158,11,0.30),
    inset 0 2px 4px rgba(0,0,0,0.35);
  border-color: rgba(245,158,11,0.55);
}

.note-name {
  font-size: 12px; font-weight: 700;
  color: #fbbf24;
  line-height: 1.2; letter-spacing: -0.01em;
}
.note-key {
  font-size: 8px; font-family: monospace;
  color: rgba(251,191,36,0.38);
  margin-top: 3px; background: rgba(255,255,255,0.04);
  border-radius: 3px; padding: 1px 4px;
}

/* Sharp/flat — darker, narrower */
.note-btn.sharp {
  background: linear-gradient(160deg, #261208 0%, #180b04 55%, #0e0602 100%);
  min-height: 52px; width: 40px;
  border-color: rgba(90,50,10,0.5);
}
.note-btn.sharp .note-name { color: #f59e0b; }
.note-btn.sharp .note-key  { color: rgba(245,158,11,0.35); }
.note-btn.sharp:active, .note-btn.sharp.struck {
  transform: translateY(2px) scale(0.96);
  background: linear-gradient(160deg, #5a2808 0%, #361604 55%, #1e0c02 100%);
  box-shadow:
    0 0 14px rgba(245,158,11,0.45),
    inset 0 2px 4px rgba(0,0,0,0.35);
  border-color: rgba(245,158,11,0.45);
}

/* ── Ripple ── */
.note-ripple {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 50;
  animation: noteRip 0.45s ease-out forwards;
  border: 2px solid rgba(245,158,11,0.7);
}
@keyframes noteRip {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(3.5); opacity: 0; }
}

/* ── Mobile ── */
@media (max-width: 639px) {
  .note-btn       { width: 40px; min-height: 54px; }
  .note-btn.sharp { width: 34px; min-height: 48px; }
  .flute-instrument { height: 40px; max-width: 340px; }
  .flute-tube     { height: 18px; }
  .tube-key-pad   { width: 9px; height: 9px; }
  .flute-key-display { gap: 5px; }
  .notes-grid     { gap: 4px; }
  .note-name      { font-size: 10px; }
}
