*{margin:0;padding:0;box-sizing:border-box}html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460);color:#fff}button{cursor:pointer;border:none;background:none;padding:0;font-family:inherit}select,input{font-family:inherit}select:focus,input:focus,button:focus{outline:2px solid rgba(100,150,255,.6);outline-offset:2px}#root{width:100%;height:100%}.app-root{width:100%;height:100%;display:grid;place-items:center}.viewport{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:40px}.stage{position:relative;display:grid;place-items:center;width:100%;overflow-x:auto}.fretboard{-webkit-user-select:none;user-select:none;touch-action:manipulation;display:block;margin:0 auto;filter:drop-shadow(0 10px 30px rgba(0,0,0,.35))}.chord-display{position:fixed;top:calc(env(safe-area-inset-top,0px) + 40px);left:50%;transform:translate(-50%);z-index:30;pointer-events:none}.chord-display h1{margin:0;padding:12px 32px;font-size:clamp(36px,8vw,72px);font-weight:900;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.4),0 4px 16px rgba(0,0,0,.3);letter-spacing:2px;background:#0000004d;border-radius:16px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.playlist-indicator{margin-top:8px;padding:6px 16px;font-size:16px;font-weight:600;color:#ffffffe6;background:#0006;border-radius:12px;text-align:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.floating-controls{position:fixed;right:calc(env(safe-area-inset-right,0px) + 16px);bottom:calc(env(safe-area-inset-bottom,0px) + 16px);z-index:25;display:flex;align-items:center;gap:8px;flex-wrap:nowrap;white-space:nowrap;touch-action:pan-y}.floating-controls .controls-toggle{width:56px;height:56px;border-radius:50%;background:#14141ce6;color:#fff;border:1px solid rgba(255,255,255,.12);box-shadow:0 6px 18px #00000073;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.floating-controls .controls-toggle:hover{background:#1e1e26f2;border-color:#fff3;box-shadow:0 8px 24px #0000008c}.floating-controls .controls-body{position:fixed;right:calc(env(safe-area-inset-right,0px) + 16px);bottom:calc(env(safe-area-inset-bottom,0px) + 84px);display:none;flex-direction:row;flex-wrap:wrap;align-items:flex-start;gap:10px;background:#101018f2;border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px;max-height:calc(100vh - 160px);max-width:1100px;width:auto;overflow-y:auto}.floating-controls.open .controls-body{display:flex}.control-section{display:flex;flex-direction:column;gap:8px;background:#ffffff08;padding:12px;border-radius:8px;min-width:220px;max-width:260px;flex:1}.control-section h3{margin:0 0 8px;font-size:14px;font-weight:600;color:#ffffffb3;text-transform:uppercase;letter-spacing:1px}.control{display:flex;gap:8px;align-items:center;padding:8px 12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px}.control.small{padding:6px 10px}.control span{font-size:14px;color:#ffffffd9;min-width:80px}.control.small span{font-size:13px;min-width:60px}.control select,.control input[type=number]{padding:6px 10px;border-radius:6px;background:#ffffff14;border:1px solid rgba(255,255,255,.15);color:#fff;font-size:14px;min-width:80px}.control input[type=checkbox]{width:18px;height:18px;cursor:pointer}.chord-list-controls{display:flex;flex-direction:column;gap:8px}.chord-list-controls button{padding:10px 16px;border-radius:8px;border:1px solid rgba(255,255,255,.2);background:#ffffff14;color:#fff;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.chord-list-controls button:hover:not(:disabled){background:#ffffff1f;border-color:#ffffff4d}.chord-list-controls button:disabled{opacity:.5;cursor:not-allowed}.btn-add-chord{background:#64c8ff26!important;border-color:#64c8ff4d!important}.btn-add-chord:hover:not(:disabled){background:#64c8ff40!important}.btn-start-playlist{background:#64ff9626!important;border-color:#64ff964d!important}.btn-start-playlist:hover:not(:disabled){background:#64ff9640!important}.btn-exit-playlist{background:#ffc86426!important;border-color:#ffc8644d!important}.btn-exit-playlist:hover:not(:disabled){background:#ffc86440!important}.btn-clear-list{background:#ff646426!important;border-color:#ff64644d!important}.btn-clear-list:hover:not(:disabled){background:#ff646440!important}.chord-list{display:flex;flex-direction:column;gap:5px;max-height:180px;overflow-y:auto;padding:4px}.chord-item{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:6px;transition:all .2s}.chord-item.active{background:#64ff9633;border-color:#64ff9666;box-shadow:0 0 12px #64ff964d}.chord-name{font-size:14px;color:#ffffffe6;font-weight:500}.chord-item.active .chord-name{font-weight:700;color:#fff}.btn-remove-chord{width:24px;height:24px;border-radius:4px;border:1px solid rgba(255,100,100,.3);background:#ff646426;color:#ff6464e6;font-size:18px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;line-height:1;transition:all .2s}.btn-remove-chord:hover{background:#ff64644d;border-color:#ff646480}@media(max-width:900px){.floating-controls .controls-body{right:calc(env(safe-area-inset-right,0px) + 8px);left:calc(env(safe-area-inset-left,0px) + 8px);max-width:none;flex-direction:column;padding:12px 14px 16px 12px;max-height:50vh;gap:8px;overflow-y:auto;overflow-x:hidden}.control-section{width:100%;min-width:auto;padding:10px 10px 12px;gap:8px;flex-shrink:0}.control-section h3{font-size:12px;margin:0 0 4px}.control{padding:6px 8px;margin-bottom:2px}.control.small{padding:5px 8px;margin-bottom:2px}.control:last-child{margin-bottom:4px}.control span{font-size:12px;min-width:60px}.control.small span{font-size:12px;min-width:50px}.control select,.control input[type=number]{padding:4px 8px;font-size:12px;min-width:60px}.chord-list-controls button{padding:8px 12px;font-size:12px}.chord-list{max-height:150px}.chord-item{padding:6px 10px}.chord-name{font-size:12px}}@media(max-width:1700px){.fretboard{width:96vw;height:auto}}@media(max-width:600px){.fretboard{width:100vw;height:auto}}@media(orientation:portrait){.viewport{position:fixed;top:50%;left:50%;width:100svh;height:100svw;transform:translate(-50%,-50%) rotate(90deg);transform-origin:center center;overflow:hidden}.chord-display{top:24px}.chord-display h1{font-size:clamp(28px,6vw,54px)}.viewport .stage{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}.viewport .fretboard{width:min(100vh - 10vmin,100%);max-height:calc(100vw - 12vmin);height:auto;max-width:100%}}@media(max-width:900px)and (orientation:landscape){.fretboard{width:98vw;height:auto}}
