*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #1a1a2e;--surface: #16213e;--text: #e0e0e0;--head-color: #4a90d9;--earth: #8b6914;--metal: #daa520;--wood: #4caf50;--fire: #e53935;--water: #1e88e5;--slot-ring: rgba(255, 255, 255, .15);--slot-ring-hover: rgba(255, 255, 255, .3)}body{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);min-height:100dvh;overflow:hidden}.app{display:flex;flex-direction:column;align-items:center;min-height:100dvh;padding:16px;gap:16px}.wheel-container{position:relative;width:360px;height:360px;margin:0 auto;touch-action:none;cursor:grab}.wheel-container:active{cursor:grabbing}.wheel-container--winding .wheel{border-color:#ffffff4d;transition:border-color .2s}.wheel-container--spring-back .wheel{border-color:#4a90d966;box-shadow:0 0 20px #4a90d933;transition:border-color .3s,box-shadow .3s}.wheel-container--tack-flash{animation:tack-bounce .3s ease-out}@keyframes tack-bounce{0%{transform:scale(1)}50%{transform:scale(1.06)}to{transform:scale(1)}}.wheel{width:100%;height:100%;border-radius:50%;border:3px solid rgba(255,255,255,.2);position:relative;transition:transform .1s ease-out}.slot{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;color:#fff;cursor:pointer;-webkit-user-select:none;user-select:none}.slot--empty{border:2px solid var(--slot-ring);background:transparent}.slot--filled{border:none;background-image:radial-gradient(circle at 35% 35%,rgba(255,255,255,.4),transparent 60%);box-shadow:0 2px 8px #0000004d,inset 0 -2px 4px #0003;color:#000000b3;text-shadow:0 1px 1px rgba(255,255,255,.3)}.slot__index{position:absolute;bottom:-14px;left:50%;transform:translate(-50%);font-size:9px;color:var(--slot-ring);opacity:.6}.slot--empty:hover{border-color:var(--slot-ring-hover)}.slot--filled:hover{filter:brightness(1.2)}.head{position:absolute;bottom:-12px;left:50%;transform:translate(-50%);width:48px;height:24px;border-radius:8px;background:var(--head-color);z-index:10;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0006}.head__stone{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;background-image:radial-gradient(circle at 35% 35%,rgba(255,255,255,.4),transparent 60%);color:#000000b3;text-shadow:0 1px 1px rgba(255,255,255,.3)}.stone-palette{display:flex;gap:12px;align-items:center;justify-content:center;padding:8px 0;flex-wrap:wrap;touch-action:none}.stone-palette__stone{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#000000b3;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:none;background-image:radial-gradient(circle at 35% 35%,rgba(255,255,255,.4),transparent 60%);box-shadow:0 2px 8px #0000004d,inset 0 -2px 4px #0003;text-shadow:0 1px 1px rgba(255,255,255,.3);transition:box-shadow .15s;border:3px solid transparent}.stone-palette__stone--selected{border-color:#fff;box-shadow:0 0 12px #ffffff80}.stone-palette__clear{height:44px;padding:0 20px;border-radius:22px;border:1px solid rgba(255,255,255,.2);background:#ffffff14;color:var(--text);font-size:14px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s}.bpm-control{display:flex;align-items:center;gap:12px;padding:8px 0;font-size:14px}.bpm-control__label{color:var(--text);font-weight:500;white-space:nowrap}.bpm-control__slider{width:120px;accent-color:var(--head-color)}.bpm-control__readout{color:var(--text);font-variant-numeric:tabular-nums;min-width:50px;text-align:right}.bpm-control__item{display:flex;align-items:center;gap:6px}.bpm-control__select{background:var(--surface);color:var(--text);border:1px solid rgba(255,255,255,.2);border-radius:4px;padding:2px 6px;font-size:14px;font-family:inherit;cursor:pointer;outline:none}.bpm-control__select:focus{border-color:var(--head-color)}.bpm-control__octave{min-width:44px;text-align:center}.slot--glow,.slot--queued{box-shadow:0 0 20px 8px #fff9;filter:brightness(1.4);transition:box-shadow .15s,filter .15s}.slot--playing{box-shadow:0 0 18px 6px #ffffffb3;filter:brightness(1.4);transition:opacity .35s ease-out,filter .35s ease-out,box-shadow .35s ease-out}.slot--dimmed{opacity:.45;filter:brightness(.5) grayscale(.4);box-shadow:0 1px 3px #0003;transition:opacity .35s ease-out,filter .35s ease-out,box-shadow .35s ease-out}.head--playing .head__stone{animation:head-stone-in .15s ease-out}@keyframes head-stone-in{0%{transform:scale(.5);opacity:.5}to{transform:scale(1);opacity:1}}.stone-ghost{position:fixed;pointer-events:none;touch-action:none;z-index:1000;opacity:.8;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#000000b3;-webkit-user-select:none;user-select:none;background-image:radial-gradient(circle at 35% 35%,rgba(255,255,255,.4),transparent 60%);box-shadow:0 2px 8px #0000004d,inset 0 -2px 4px #0003;text-shadow:0 1px 1px rgba(255,255,255,.3);border:3px solid transparent;transition:opacity .2s ease-out}.stone-ghost--fading{opacity:0}.wheel-hint{text-align:center;color:#ffffff80;font-size:14px;margin-top:8px;animation:hint-fade-in .3s ease-out}@keyframes hint-fade-in{0%{opacity:0}to{opacity:1}}
