.tuner{margin:1.25rem auto;box-shadow:0 24px 60px -24px #000000e6,inset 0 1px #ffffff0f;border:1px solid #3f3122;border-radius:1.5rem;background:radial-gradient(ellipse 80% 60% at 50% 0%,rgb(245 158 11 / .14),transparent 70%),repeating-linear-gradient(100deg,rgb(255 255 255 / .012) 0 2px,transparent 2px 7px),linear-gradient(170deg,#21170d,#0c0905);padding:1.25rem 1.25rem 1rem;max-width:30rem;color:#e7e0d4;text-align:center}.gauge{position:relative;margin:0 auto;max-width:19rem}.gauge svg{display:block;width:100%;overflow:visible}.gauge .band{transition:opacity .2s;fill:none;stroke-width:12}.gauge .band.far{opacity:.35;stroke:#b91c1c}.gauge .band.near{opacity:.4;stroke:#d97706}.gauge .band.zone{opacity:.55;stroke:#16a34a}.gauge.idle .band{opacity:.18}.gauge.tuned .band.zone{opacity:1;filter:drop-shadow(0 0 6px rgb(34 197 94 / .9))}.gauge .tick{stroke:#57534e;stroke-linecap:round;stroke-width:1.5}.gauge .tick.major{stroke:#a8a29e;stroke-width:2.5}.gauge .label{fill:#78716c;font-size:16px;text-anchor:middle}.gauge .marker{transition:transform .12s ease-out}.gauge .marker .needle{filter:drop-shadow(0 2px 2px rgb(0 0 0 / .6));transition:fill .2s;fill:#fbbf24;stroke:#1c1208;stroke-linejoin:round;stroke-width:1}.gauge .marker .shine{stroke:#ffffff8c;stroke-linecap:round;stroke-width:.6}.gauge.idle .marker .needle{fill:#a8a29e}.gauge.idle .marker .shine{stroke:#ffffff4d}.gauge.tuned .marker .needle{filter:drop-shadow(0 2px 2px rgb(0 0 0 / .6)) drop-shadow(0 0 5px rgb(74 222 128 / .6));fill:#4ade80}.readout{display:grid;position:absolute;bottom:2.4rem;left:50%;justify-items:center;transform:translate(-50%);white-space:nowrap}.readout .note{transition:color .2s;font-weight:800;font-size:3.25rem;line-height:1;letter-spacing:-.03em}.readout .note sub{margin-left:.05em;color:#78716c;font-weight:600;font-size:1rem;letter-spacing:0}.gauge.idle .note{color:#57534e}.gauge.tuned .note{color:#4ade80;text-shadow:0 0 20px rgb(74 222 128 / .5)}.readout .cents{color:#a8a29e;font-size:.8rem;font-variant-numeric:tabular-nums}.status{display:flex;justify-content:center;gap:.75rem;margin:.2rem 0 0;min-height:1.3em;font-size:.8rem}.status .hint-text{color:#fbbf24;font-weight:600}.gauge.tuned .status .hint-text{color:#4ade80}.status .hz{color:#78716c;font-variant-numeric:tabular-nums}.strings{display:grid;grid-template-columns:repeat(6,1fr);gap:.4rem;margin:.75rem 0 .9rem;box-shadow:inset 0 2px 8px #0009;border-radius:.9rem;background:linear-gradient(180deg,#2a1d10,#170f07);padding:.6rem .5rem .4rem;list-style:none}.strings li{margin:0}.tuner .string{display:flex;flex-direction:column;align-items:center;gap:.35rem;transition:background .15s,border-color .15s;cursor:pointer;margin:0;box-shadow:none;border:1px solid transparent;border-radius:.6rem;background:none;padding:0 0 .35rem;width:100%;color:#d6d3d1;font-weight:700;font-size:1rem}.tuner .string .wire{transition:background .15s,box-shadow .15s;border-radius:999px;background:linear-gradient(90deg,#78716c,#e7e5e4,#78716c);width:var(--gauge);height:2rem}.tuner .string sub{color:#78716c;font-weight:500;font-size:.65rem}.tuner .string:hover{background:#ffffff0a}.tuner .string:focus-visible{outline:2px solid #f59e0b;outline-offset:2px}.tuner .string.active{color:#fbbf24}.tuner .string.active .wire{box-shadow:0 0 10px #fbbf24cc;background:#fbbf24}.tuner .string.playing{border-color:#38bdf880;background:#38bdf814;color:#7dd3fc}.tuner .string.playing .wire{animation:vibrate .08s linear infinite alternate;box-shadow:0 0 10px #38bdf8cc;background:#38bdf8}@keyframes vibrate{to{transform:translate(1px)}}@media(prefers-reduced-motion:reduce){.tuner .string.playing .wire{animation:none}}.tuner .listen{transition:filter .15s;cursor:pointer;margin:0;box-shadow:0 6px 18px -6px #d9770699;border:1px solid #f59e0b;border-radius:999px;background:linear-gradient(180deg,#d97706,#b45309);padding:.55rem 1.5rem;color:#fffbeb;font-weight:600;font-size:.95rem}.tuner .listen>span{display:inline-flex;align-items:center;gap:.5rem}.tuner .listen svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;width:1.15em;height:1.15em}.tuner .listen .stop svg{fill:currentColor;stroke:none}.tuner .listen .stop,.tuner .listen.on .start{display:none}.tuner .listen.on .stop{display:inline-flex}.tuner .listen:active{transform:translateY(1px);filter:brightness(.92)}.tuner .listen:disabled{opacity:.7;cursor:progress}.tuner .listen:hover{filter:brightness(1.12)}.tuner .hint{margin:.6rem 0 0;color:#78716c;font-size:.8rem}.tuner .wave{display:block;opacity:0;transition:height .25s ease-out,margin .25s ease-out,opacity .25s;margin:0;box-shadow:inset 0 1px 4px #0009;border-radius:.6rem;background:#00000059;width:100%;height:0}.tuner .wave.on{opacity:1;margin-bottom:.9rem;height:3rem}.tuner:has(.listen.on){animation:listening 1.5s ease-in-out infinite;border-color:#b45309}@keyframes listening{0%,to{box-shadow:0 24px 60px -24px #000000e6,inset 0 1px #ffffff0f,0 0 #f59e0b00}50%{box-shadow:0 24px 60px -24px #000000e6,inset 0 1px #ffffff0f,0 0 28px 4px #f59e0b59}}@media(prefers-reduced-motion:reduce){.tuner:has(.listen.on){animation:none;box-shadow:0 24px 60px -24px #000000e6,inset 0 1px #ffffff0f,0 0 24px 2px #f59e0b4d}}
