/* Drone */
.drone-stage { gap: var(--space-2); }
.drone-orb { position: relative; width: 100%; max-width: 320px; aspect-ratio: 1; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.drone-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.drone-wave { fill: none; stroke: var(--color-accent); transform-origin: 150px 150px; opacity: .12; }
.drone-wave--1 { stroke-width: 2; opacity: .35; }
.drone-wave--2 { stroke-width: 1.5; opacity: .22; }
.drone-wave--3 { stroke-width: 1; opacity: .12; }
.drone-core { fill: var(--color-surface-2); stroke: var(--color-hairline); stroke-width: 1.5; transform-origin: 150px 150px; transition: fill .6s ease, stroke .6s ease; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35)); }

.drone-stage.is-on .drone-core { fill: #1d332d; stroke: rgba(0, 205, 156, .5); animation: drone-core 6s ease-in-out infinite; }
.drone-stage.is-on .drone-wave { animation: drone-breathe 6s ease-in-out infinite; }
.drone-stage.is-on .drone-wave--2 { animation-delay: -1.2s; }
.drone-stage.is-on .drone-wave--3 { animation-delay: -2.4s; }
/* Con quinta u octava, el halo se mueve más rápido y brilla un poco más */
.drone-stage.is-on.has-layers .drone-wave { animation-duration: 4.2s; }
@keyframes drone-breathe {
  0%, 100% { transform: scale(.94); opacity: .1; }
  50% { transform: scale(1.04); opacity: .45; }
}
@keyframes drone-core {
  0%, 100% { transform: scale(.98); }
  50% { transform: scale(1.03); }
}
/* Pequeño salto al cambiar de nota */
.drone-orb.is-bump .drone-orb__note { animation: drone-bump .35s var(--ease); }
@keyframes drone-bump { 0% { transform: scale(.86); opacity: .4; } 100% { transform: none; opacity: 1; } }

.drone-orb__label { position: relative; text-align: center; display: grid; gap: 6px; pointer-events: none; }
.drone-orb__note {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 4.4rem);
  line-height: .9;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  transition: color .3s ease;
}
.drone-stage.is-on .drone-orb__note { color: var(--color-accent); }
.drone-orb__meta { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-gray); font-variant-numeric: tabular-nums; }

.drone-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }

.drone-layers { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.drone-chip { display: inline-flex; align-items: center; gap: 6px; }
.drone-chip span { font-size: 1rem; line-height: 1; transition: transform .2s var(--ease); }
.drone-chip b { font-weight: 700; color: var(--color-gray); }
.drone-chip[aria-pressed="true"] span { transform: rotate(45deg); }
.drone-chip[aria-pressed="true"] b { color: var(--color-accent); }

/* Octava en la cabecera del panel de notas */
.drone-oct { display: flex; align-items: center; gap: 6px; }
.drone-oct__val { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--color-gray); }
.drone-oct .stepper__value { width: 44px; height: 34px; font-size: 1rem; padding: 0; }

.note-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.note-btn {
  min-height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 2px;
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.note-btn:active { transform: scale(.94); }
.note-btn b { font-size: .92rem; line-height: 1.1; }
.note-btn small { font-size: .7rem; font-weight: 700; color: var(--color-gray); }
.note-btn.is-sharp { background: var(--color-bg); }
.note-btn:hover { border-color: var(--color-accent); }
.note-btn[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); box-shadow: var(--shadow-glow); }
.note-btn[aria-pressed="true"] small { color: rgba(18, 18, 18, .7); }
.note-btn.is-fifth { border-color: rgba(0, 205, 156, .55); }

.drone-tune { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.drone-tune .field + .field { margin-top: 0; }
.drone-tune .stepper { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 4px; }
.drone-tune .icon-btn { width: 36px; height: 36px; }
.drone-tune .stepper__value { height: 36px; font-size: 1rem; }
.drone-tune .field__label { font-size: .8rem; }

/* Móvil: orbe pequeño y la rejilla de notas justo debajo, todo en la primera pantalla */
@media (max-width: 600px) {
  .drone-stage { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .drone-orb { max-width: 168px; }
  .drone-orb__note { font-size: 2.6rem; }
  .drone-orb__meta { font-size: .64rem; letter-spacing: .06em; }
  .drone-actions { gap: var(--space-2); }
  .drone-actions .icon-btn--lg { width: 48px; height: 48px; }
  .drone-chip { min-height: 34px; padding: 0 12px; font-size: .8rem; }
  .note-btn { min-height: 44px; }
  .note-btn b { font-size: .84rem; }
  .note-btn small { font-size: .62rem; }
}
@media (max-width: 380px) {
  .drone-tune { grid-template-columns: minmax(0, 1fr); }
}
