@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap";:root{color:#242323;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--muted:#898781;--line:#e8e6e1;--coral:#e1775f;--green:#66876c;--mono:"DM Mono", Consolas, monospace;background:#f8f7f4;font-family:DM Sans,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(at 50% 20%,#efe2d14d,#0000 55%),#f8f7f4;min-width:360px;min-height:100vh;margin:0}button,input{font:inherit}button{color:inherit}.topbar{border-bottom:1px solid #e2dfd8cc;justify-content:space-between;align-items:center;height:74px;padding:0 max(6.3vw,28px);display:flex}.wordmark{color:#292725;letter-spacing:-.3px;align-items:center;gap:10px;font-size:15px;font-weight:600;text-decoration:none;display:inline-flex}.brand-mark{color:#fff;background:var(--coral);width:27px;height:27px;font:500 12px var(--mono);letter-spacing:-1px;border-radius:9px;place-items:center;display:grid}.topbar-right,.connection,.peer-count{align-items:center;display:flex}.topbar-right{gap:20px}.connection,.peer-count{color:#686660;gap:8px;font-size:12px}.status-dot,.live-pulse{background:#c4c0b8;border-radius:50%;width:7px;height:7px}.status-dot.connected,.live-pulse{background:#78a17a}.status-dot.connecting{background:#e3ac5e;animation:1.3s infinite pulse}.status-dot.disconnected{background:#d37866}.peer-count{border-left:1px solid var(--line);padding-left:19px}#peer-count{color:#292725;font:12px var(--mono)}.player-name-button{color:#4a4741;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:20px;align-items:center;gap:8px;padding:5px 8px 5px 5px;font-size:12px;display:inline-flex}.player-name-button:hover,.player-name-button:focus-visible{background:#fffefa;border-color:#e8e1d8}.player-name-button .player-avatar{width:25px;height:25px;font-size:10px}.edit-mark{color:#99958d;font-size:12px}.player-name-dialog{color:#35332f;background:#fffefa;border:1px solid #e7e4de;border-radius:10px;width:min(390px,100% - 32px);padding:24px;box-shadow:0 18px 70px #251f1838}.player-name-dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#24221f52}.player-name-dialog h2{margin:0;font-size:18px;font-weight:600}.player-name-dialog form>p{color:#89867f;margin:7px 0 18px;font-size:12px}.player-name-dialog label{color:#89867f;font:9px var(--mono);letter-spacing:.8px;margin:0 0 7px;display:block}.player-name-dialog input{color:#393733;background:#fff;border:1px solid #e1ded7;border-radius:5px;outline:0;width:100%;height:42px;padding:0 11px;font-size:13px}.player-name-dialog input:focus{border-color:#cf9a8b;box-shadow:0 0 0 3px #e1775f1a}.player-name-dialog .player-name-error{color:#b64f3d;min-height:16px;margin:6px 0 0;font-size:10px}.dialog-actions{justify-content:flex-end;gap:8px;margin-top:12px;display:flex}.dialog-actions .join-button{margin:0}main{width:min(940px,100% - 48px);margin:0 auto;padding-top:28px}.intro-copy{color:#77746e;text-align:center;margin:19px 0 0;font-size:14px}.room-chat-layout{grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);align-items:stretch;gap:18px;margin-top:24px;display:grid}.room-controls{text-align:left;background:#fffefabf;border:1px solid #e7e4de;border-radius:9px;width:auto;margin:0;padding:17px}.room-controls>label{color:#89867f;font:10px var(--mono);letter-spacing:1px;margin:0 0 8px 2px;display:block}.room-entry{background:#ffffffbf;border:1px solid #e1ded7;border-radius:7px;align-items:center;height:49px;display:flex;box-shadow:0 4px 14px #493f3009}.room-hash{color:#aaa69f;font:13px var(--mono);padding-left:14px}.room-entry input{color:#393733;min-width:0;height:100%;font:12px var(--mono);background:0 0;border:0;outline:0;flex:1;padding:0 10px}.room-entry:focus-within{border-color:#cf9a8b;box-shadow:0 0 0 3px #e1775f1a}.join-button{color:#fff;cursor:pointer;background:#d8735e;border:0;border-radius:5px;align-items:center;gap:12px;height:35px;margin-right:6px;padding:0 12px;font-size:11px;font-weight:600;transition:background .15s,transform .15s;display:flex}.join-button:hover{background:#c96651;transform:translateY(-1px)}.join-button span{font-size:15px}.room-hint{color:#928f88;min-height:17px;margin:8px 0 0 2px;font-size:10px}.chat-panel{background:#fffefa;border:1px solid #e7e4de;border-radius:9px;min-width:0;padding:15px;box-shadow:0 6px 22px #43372709}.chat-heading{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.chat-heading h2{color:#35332f;margin:0;font-size:12px;font-weight:600}#chat-status{color:#89867f;text-align:right;min-height:14px;font-size:9px}.chat-messages{background:#fbfaf7;border:1px solid #eeeae2;border-radius:5px;flex-direction:column;gap:7px;min-height:150px;max-height:210px;margin:9px 0 0;padding:9px;list-style:none;display:flex;overflow:auto}.chat-messages:empty:before{color:#a09c94;content:"Messages in this room will appear here.";margin:auto;font-size:10px}.chat-message{align-self:flex-start;max-width:94%}.chat-message.own-message{align-self:flex-end}.chat-message-header{color:#928f88;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:9px;display:flex}.chat-author{color:#5d5952;font-weight:600}.chat-message time{font:8px var(--mono)}.chat-private{color:#927398}.chat-everyone{color:#789078}.chat-message>p{color:#494640;overflow-wrap:anywhere;white-space:pre-wrap;background:#f0eee8;border-radius:6px;margin:3px 0 0;padding:6px 8px;font-size:10px;line-height:1.45}.own-message>p{background:#f8eae4}.chat-form{margin-top:9px}.chat-audience{border:0;flex-wrap:wrap;gap:10px;margin:0;padding:0;display:flex}.chat-audience legend{color:#89867f;font:8px var(--mono);letter-spacing:.5px;margin-bottom:5px}.chat-audience label,.chat-recipient-list label{color:#69665f;align-items:center;gap:4px;font-size:9px;display:inline-flex}.chat-audience input,.chat-recipient-list input{accent-color:var(--coral)}.chat-recipient-list{flex-wrap:wrap;gap:4px 10px;min-height:18px;max-height:45px;margin:5px 0 7px;display:flex;overflow-y:auto}.chat-recipient-list>span{color:#a09c94;font-size:9px}.chat-composer{align-items:stretch;gap:7px;display:flex}.chat-composer textarea{resize:vertical;color:#393733;background:#fff;border:1px solid #e1ded7;border-radius:5px;outline:0;flex:1;min-width:0;padding:7px 8px;font:10px/1.4 DM Sans,Segoe UI,sans-serif}.chat-composer textarea:focus{border-color:#cf9a8b;box-shadow:0 0 0 2px #e1775f1a}.chat-composer .join-button{justify-content:center;min-width:54px;height:auto;margin:0}.instrument{background:#fffefa;border:1px solid #e7e4de;border-radius:10px;padding:19px 22px 15px;box-shadow:0 9px 35px #4337270e}.instrument-top,.instrument-title,.instrument-actions,.keyboard-footer{justify-content:space-between;align-items:center;display:flex}.instrument-top{min-height:39px;margin-bottom:15px}.instrument-title{justify-content:flex-start;gap:11px}.instrument-icon{width:34px;height:34px;color:var(--coral);background:#fbf3ef;border:1px solid #f0dfd8;border-radius:8px;place-items:center;font-size:18px;display:grid}.instrument-title h2,.playing-heading h2{color:#35332f;margin:0;font-size:13px;font-weight:600}.instrument-title p{color:#96928a;margin:3px 0 0;font-size:10px}.octave-picker{color:#89867f;font:8px var(--mono);letter-spacing:.7px;flex-direction:column;gap:3px;margin-left:12px;display:flex}.octave-picker select{color:#69665f;letter-spacing:0;background:#fffefa;border:1px solid #e7e4de;border-radius:4px;width:92px;height:27px;padding:0 5px;font:9px DM Sans,Segoe UI,sans-serif}.octave-picker select:focus-visible{outline-offset:2px;outline:2px solid #e1775f80}.instrument-actions{justify-content:flex-end;gap:9px}.midi-status{color:#8e8a82;margin-right:2px;font-size:10px}.instrument-picker{grid-template-columns:minmax(200px,1fr) minmax(150px,1fr);align-items:center;gap:12px;margin-top:15px;display:grid}.instrument-picker select{color:#69665f;background:#fffefa;border:1px solid #e7e4de;border-radius:5px;width:100%;min-width:0;height:75px;padding:4px;font-size:10px}.instrument-picker select:focus-visible{outline-offset:2px;outline:2px solid #e1775f80}.instrument-picker option{padding:5px 7px}.instrument-picker p{color:#96928a;margin:0;font-size:10px;line-height:1.5}.tool-button{color:#69665f;cursor:pointer;background:#fffefa;border:1px solid #e7e4de;border-radius:5px;height:32px;padding:0 11px;font-size:10px;transition:border-color .15s,background .15s}.tool-button:hover{background:#faf8f3;border-color:#d2c9bd}.audio-button[aria-pressed=true]{color:#59795d;background:#f4f8f2;border-color:#c9d8c8}.midi-icon{color:#887b9d;margin-right:4px;font-size:15px}.keyboard{-webkit-user-select:none;user-select:none;touch-action:none;background:#eeeae2;border:1px solid #cfcac1;border-radius:5px 5px 7px 7px;width:100%;height:clamp(150px,22vw,194px);display:flex;position:relative;overflow:hidden}.piano-key{cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent;border:0;flex:none;justify-content:center;align-items:flex-end;padding:0 0 12px;transition:background 80ms,box-shadow 80ms;display:flex;position:relative}.white-key{z-index:0;width:calc(100% / var(--white-key-count));background:linear-gradient(#fff 0%,#fffefa 75%,#f6f3ed 100%);border-right:1px solid #d5d0c8;border-radius:0 0 4px 4px;height:100%;box-shadow:inset 0 -3px #e7e2d9}.white-key:last-child{border-right:0}.white-key:hover{background:#fdf2ed}.white-key:active,.white-key.is-active{background:#f7ded4;box-shadow:inset 0 -3px #e6b7a7}.black-key{z-index:2;background:linear-gradient(90deg,#22211f,#383632 65%,#23221f);border:1px solid #1f1e1d;border-top:0;border-radius:0 0 4px 4px;width:1.24rem;height:62%;position:absolute;top:0;box-shadow:0 4px 4px #1b18143d}.black-key:hover{background:linear-gradient(90deg,#38322f,#55423b 65%,#38322f)}.black-key:active,.black-key.is-active{background:linear-gradient(90deg,#a95543,#cb7059 65%,#a95543)}.key-note{color:#b7b2aa;font-size:9px;line-height:1}.key-shortcut{color:#aaa59d;font:9px var(--mono);position:absolute;bottom:25px}.black-key .key-shortcut{color:#b9b2a7;font-size:8px;bottom:8px}.keyboard-footer{color:#99958d;padding-top:12px;font-size:9px}.keyboard-footer>span:first-child{align-items:center;gap:3px;display:flex}kbd{color:#76726b;min-width:15px;font:9px var(--mono);text-align:center;background:#faf8f4;border:1px solid #e8e4dc;border-radius:3px;padding:2px 3px}.key-divider{padding:0 5px}.playing-with{min-height:88px;padding:23px 2px 18px}.playing-heading{align-items:center;gap:9px;display:flex}.playing-heading h2{font-size:11px}.playing-with>p{color:#96928a;margin:8px 0 0 16px;font-size:10px}.playing-with>p[hidden]{display:none}#players{flex-wrap:wrap;gap:9px;margin:12px 0 0 16px;padding:0;list-style:none;display:flex}.player{color:#6f6b64;align-items:center;gap:7px;font-size:10px;display:flex}.player-avatar{color:#a96855;background:#f3e5de;border-radius:50%;place-items:center;width:23px;height:23px;display:grid}.player-live{color:#6c8c70;font:8px var(--mono);letter-spacing:.5px}footer{border-top:1px solid var(--line);color:#a09c94;justify-content:space-between;width:min(940px,100% - 48px);margin:13px auto 0;padding:17px 0 22px;font-size:9px;display:flex}.footer-spark{color:var(--coral);padding-left:4px}@keyframes pulse{50%{opacity:.45}}@media (width<=650px){.topbar{height:62px;padding:0 14px}.topbar-right{gap:8px}.player-name-button{gap:5px;padding-right:4px;font-size:10px}.connection{gap:5px;font-size:10px}.peer-count{gap:5px;padding-left:8px;font-size:10px}main{width:calc(100% - 32px);padding-top:18px}.room-chat-layout{grid-template-columns:1fr;gap:12px;margin-top:19px}.room-controls{padding:14px}.chat-panel{padding:12px}.intro-copy{font-size:12px}.instrument{padding:15px 11px 12px}.instrument-top{flex-direction:column;align-items:stretch;gap:12px}.instrument-actions{flex-wrap:wrap;gap:6px;width:100%}.midi-status{text-align:right;flex-basis:100%}.octave-picker{margin-left:4px}.octave-picker select{width:82px}.instrument-picker{grid-template-columns:1fr;gap:7px}.instrument-picker select{height:78px}.tool-button{padding:0 8px;font-size:9px}.keyboard{height:154px}.black-key{width:1rem}.keyboard-footer{align-items:flex-start;gap:8px;font-size:8px}.keyboard-footer>span:last-child{text-align:right}kbd{min-width:13px;font-size:8px}footer{gap:12px;width:calc(100% - 32px);font-size:8px}footer span:last-child{text-align:right}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
