/* Maqam — melody memory. */
.mq-wrap { position: relative; width: min(92vw, 62vh, 460px); aspect-ratio: 1; }
.mq-wrap::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: radial-gradient(circle, rgba(36, 64, 184, 0.25), transparent 70%);
}
.mq-pads { position: absolute; inset: 0; }
.mq-pad {
  position: absolute;
  left: calc(50% + var(--x));
  top: calc(50% + var(--y));
  width: 30%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%), color-mix(in srgb, var(--c) 45%, #0A1440);
  background-color: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s var(--ease-out), filter 0.12s linear, box-shadow 0.12s linear;
  filter: saturate(0.7) brightness(0.75);
}
.mq-pad.is-on { filter: none; transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 0 40px var(--c); }
.mq-string {
  position: absolute;
  left: 50%; top: 18%; bottom: 18%;
  width: 2px;
  background: rgba(255, 246, 226, 0.7);
  transform: translateX(-50%);
}
.mq-pad.is-on .mq-string { animation: mq-twang 0.25s linear; }
@keyframes mq-twang { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% + 3px)); } 75% { transform: translateX(calc(-50% - 3px)); } }
.mq-centre {
  position: absolute;
  left: 50%; top: 50%;
  width: 28%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(232, 182, 90, 0.5) 0 6deg, transparent 6deg 30deg),
    radial-gradient(circle, #6B4424 0 55%, #4A2C14 56%);
  box-shadow: inset 0 0 0 3px #E8B65A, 0 10px 30px rgba(0, 0, 0, 0.45);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: clamp(1rem, 5vw, 1.6rem);
  font-weight: 700;
  cursor: pointer;
}
