:root{--ink:#23372c;--green:#b7dc9b;--paper:#f8f6e9;--line:#445942;--mono:"Courier New",monospace;font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",system-ui,sans-serif;color:var(--ink);background-color:var(--paper);font-synthesis:weight}
*{box-sizing:border-box}
body{margin:0;min-height:100svh;background-image:linear-gradient(#65805a0d 1px,transparent 1px),linear-gradient(90deg,#65805a0d 1px,transparent 1px);background-size:24px 24px}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:3px solid #355bc1;outline-offset:3px;z-index:2}
.topbar{border-bottom:1.5px solid #b5beaa;background:#f7f6e9}
.bar-inner,main{width:min(1256px,92%);margin:auto}
.bar-inner{height:64px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:7px;font:1000 23px/1 "Arial Black",Arial,sans-serif;letter-spacing:-1.5px}
.brand i{font-style:normal;color:#628250}.brand canvas{width:37px;height:30px;image-rendering:pixelated;margin-right:3px}
.actions,.top-action,.below>span,.icon,.screen-head>span,.instrument-foot>span{display:inline-flex;align-items:center}
.actions{gap:18px}.top-action{border:0;background:transparent;gap:7px;font-size:.88rem;font-weight:700;padding:8px 2px}
.icon svg{width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.question{font:800 12px/16px Arial;text-align:center;border:1.6px solid;border-radius:50%;width:18px;height:18px}
.separator{height:15px;width:1px;background:#b7c0ae}
main{padding:0 0 20px}
.intro{display:flex;align-items:center;justify-content:space-between;min-height:188px;padding:26px 18px 29px 5px;gap:16px}
.eyebrow{font:800 .76rem/1.4 var(--mono);letter-spacing:1.8px;display:flex;align-items:center;gap:8px;color:#536c46}
.on-air{width:16px;height:8px;background:repeating-linear-gradient(90deg,#6c9557 0 3px,transparent 3px 5px);transform:skewX(-15deg)}
h1{margin:6px 0 8px;font-size:clamp(2.6rem,4.8vw,4.35rem);font-weight:950;letter-spacing:-.065em;line-height:1.14}
.title-note{font-family:Georgia,serif;color:#80ac62;display:inline-block;font-size:.64em;transform:rotate(8deg) translateY(-.14em);margin-left:14px;text-shadow:1px 1px var(--ink)}
.intro p{margin:0;color:#4e6051;font-size:.97rem;line-height:1.6}
.record-art{width:195px;height:116px;position:relative;margin-right:18px;isolation:isolate;transform:rotate(-5deg)}
.record{position:absolute;width:104px;height:104px;border-radius:100%;right:13px;bottom:2px;background:repeating-radial-gradient(circle,#485344 0px 1px,#29372e 2px 4px);border:2px solid var(--ink)}
.record:after{content:"";position:absolute;inset:35%;border:9px solid #eeb5a5;background:var(--paper);border-radius:50%}
.sleeve{position:absolute;left:26px;top:0;width:114px;height:114px;overflow:hidden;background:repeating-conic-gradient(from 32deg at 50% 58%,#f6c0ad 0deg 17deg,#f9d3bb 17deg 35deg);border:2px solid var(--ink);box-shadow:2px 3px 0 #3d503c;border-radius:3px;transform:rotate(-6deg)}
.sleeve img{width:80%;height:80%;object-fit:contain;position:absolute;bottom:5%;left:8%;filter:drop-shadow(2px 2px 0 #fff6db) drop-shadow(-2px -1px 0 #fff6db)}
.cover-note{position:absolute;color:#334738;right:9px;top:2px;font:900 23px Georgia;transform:rotate(13deg)}.cover-note.second{top:auto;bottom:7px;left:7px;font-size:17px}
.spark{position:absolute;right:-3px;top:-4px;font:32px/1 Georgia;color:#ddb748;text-shadow:.8px 1px var(--ink)}
.instrument{position:relative;padding:24px 22px 10px;background:linear-gradient(120deg,#c7e5af,#b9dba4 63%,#afce99);border:2.5px solid var(--ink);border-radius:24px;box-shadow:inset 0 3px 0 #e3f4cf,inset 0 -5px 0 #9ab987,0 5px 0 #455841,0 12px 0 -4px #263b2619}
.screw{position:absolute;width:9px;height:9px;border:1px solid #5f7657;border-radius:50%;background:#adc398;box-shadow:inset 0 1px 0 #e1eece}
.screw:after{position:absolute;content:"";width:5px;height:1px;top:3px;left:1px;background:#687b5c;transform:rotate(-39deg)}
.tl{top:11px;left:12px}.tr{top:11px;right:12px}.bl{bottom:10px;left:12px}.br{bottom:10px;right:12px}
.console{display:grid;grid-template-columns: minmax(72px,.6fr) minmax(230px,3.4fr) minmax(148px,1fr);gap:clamp(14px,2.7vw,42px);align-items:center;padding:0 3.8% 22px}
.speaker-strip{display:grid;justify-items:center;gap:8px;opacity:.88}.speaker-strip b,.foot-mark{font:900 italic .88rem/1 "Arial Black",Arial,sans-serif;letter-spacing:.8px}
.grille{width:min(100%,108px);height:53px;border-radius:9px;background:radial-gradient(ellipse at center,#354c35 0 1.55px,#768d6b 1.7px 2.5px,#d6eac6 2.7px 3.2px,transparent 3.4px) 0 0/9px 9px}
.screen-shell{border:2px solid #41563b;background:#789068;border-radius:12px;padding:5px;box-shadow:0 2px 0 #e5f2d6,inset 0 2px 0 #697d5d}
.screen{border-radius:6px;color:#344a2c;border:1.5px solid #495e3c;background-color:#c2d69b;background-image:radial-gradient(#61794d35 .65px, transparent .85px);background-size:3px 3px;box-shadow:inset 2px 3px 7px #435b3b38;padding:10px 17px 11px}
.screen-head{display:flex;align-items:center;justify-content:space-between;line-height:1.1;font:700 .75rem var(--mono);letter-spacing:.55px}
.screen-head i{width:6px;height:6px;background:#4d653e;margin-right:6px}.lcd-type{opacity:.76;letter-spacing:1.6px}
.screen-main{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:5px 0 7px}
.track-title{font-size:clamp(1.18rem,2vw,1.7rem);line-height:1.25;font-weight:850;letter-spacing:.035em}
.counter{font:700 .82rem/1.45 var(--mono);letter-spacing:1px}.counter-unit{font:700 .7rem sans-serif;margin-left:6px}.faded{opacity:.6}
#melody{image-rendering:pixelated;width:clamp(76px,12vw,165px);height:39px;opacity:.85}
.track{height:5px;background:#738b5350;border-radius:1px;overflow:hidden}.track>div{background:#4a6340;width:0;height:100%}
.transport{display:flex;align-items:center;justify-content:center;gap:18px}.transport button{padding:0;background:none;border:0;display:grid;justify-items:center;gap:9px;font-weight:750;font-size:.82rem;white-space:nowrap}
.function-key{width:54px;height:40px;border:2px solid #344a36;border-radius:10px;display:grid;place-items:center;box-shadow:inset 0 2px 0 #ffffff66,0 3px 0 #495c43;transition:transform .08s}
.function-key .icon{font-size:20px}.pink{background:#f1baaf}.yellow{background:#f4d99b}.transport button:active .function-key{transform:translateY(3px);box-shadow:inset 0 2px 0 #0002}
.keywell{border:2px solid #354c39;border-radius:12px;background:#394e3e;padding:6px 5px 5px;box-shadow:0 2px 0 #eff9df88,inset 0 2px 3px #18301d69}
#keys{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:3px}
.key{background:linear-gradient(90deg,#f8f7e9,#fffef5 56%,#f8f7eb);min-width:0;border:0;border-radius:5px 5px 8px 8px;position:relative;height:clamp(168px,16.4vw,218px);box-shadow:inset 0 -6px 0 #cecdb8,inset 0 -8px 0 #e5e4cf;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:15px 2px 17px;touch-action:manipulation;user-select:none;isolation:isolate}
.key::before{position:absolute;content:"";inset:0 0 auto;height:7px;background:var(--tint);border-radius:5px 5px 0 0;opacity:.85}
.key:hover{background:#fbfae8}.key.active{background:linear-gradient(#e5f1cb,#eff4d7)}.key.hit{box-shadow:inset 0 -2px 0 #b8c49e;transform:translateY(3px);background:#dfedbd}
.frog-wrap{width:100%;height:clamp(68px,6.7vw,95px);position:relative;display:grid;place-items:end center;margin-bottom:9px}
.frog-wrap img{width:min(95%,103px);height:100%;object-fit:contain;object-position:bottom;pointer-events:none;position:relative;z-index:1;transform-origin:50% 94%}
.key-name{font-size:clamp(.79rem,1.15vw,1.02rem);font-weight:780;letter-spacing:.025em;line-height:1.35}
kbd,.cap{font-family:var(--mono);font-weight:700;background:#f5f4e8;border:1px solid #a9b49f;border-radius:5px;text-align:center;line-height:1.1}
.cap{margin-top:12px;min-width:23px;padding:3px 4px 2px;font-size:.77rem;color:#53674d;box-shadow:0 1px 0 #b7c0ac}.key.active .cap{background:#c6dfa7}
.pop{position:absolute;left:65%;top:-12px;font:bold 21px Georgia;color:#51814f;pointer-events:none;text-shadow:1px 1px #fff8e2}
.instrument-foot{display:flex;align-items:center;justify-content:space-between;padding:11px 12px 2px;font-size:.76rem;letter-spacing:.04em;color:#41573e}.instrument-foot b{font-weight:650}
.led{width:7px;height:7px;background:#799359;border:1px solid #526b42;border-radius:100%;margin-right:7px}.instrument.played .led{background:#d8fb88;box-shadow:0 0 4px #dcff91}
.foot-mark{font-size:.7rem;opacity:.8}.foot-mark i{margin-left:4px}.below{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;margin:21px 5px 0;color:#62735e;font-size:.81rem}.below>span{gap:5px}.below .icon{margin-right:3px}.below kbd{padding:1px 4px;font-size:.76rem}
#notice{color:#883c32;font-weight:700;font-size:.9rem}#notice:empty{display:none}
dialog{border:2px solid var(--ink);border-radius:16px;color:var(--ink);background:#faf8e9;padding:22px 25px;max-width:min(410px,90vw);box-shadow:4px 5px var(--ink)}
dialog::backdrop{background:#22352f65}dialog p{font-size:.94rem;line-height:1.65}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0}.dialog-head button{font:25px Arial;border:none;background:none}.dismiss{border:1.5px solid var(--ink);background:var(--green);border-radius:7px;padding:7px 14px;font-weight:700}
@media(min-width:1500px){.intro{min-height:216px}.instrument{padding-top:30px}.console{padding-bottom:28px}}
@media(max-width:850px){.bar-inner,main{width:95%}.console{grid-template-columns:74px 1fr 118px;gap:15px;padding:0 1% 17px}.instrument{padding:20px 12px 9px}.transport{gap:10px}.function-key{width:45px}.cap{margin-top:9px}.intro{min-height:160px}.key{height:155px;padding-bottom:13px}.frog-wrap{height:58px}}
@media(max-width:700px){.bar-inner,main{width:94%}.bar-inner{height:51px}.brand{font-size:20px}.brand canvas{width:31px;height:25px}.actions{gap:10px}.intro{min-height:140px;padding:18px 2px;gap:3px}.eyebrow{font-size:.64rem}.intro p{font-size:.86rem;max-width:27em}.record-art{flex:none;width:114px;height:90px;margin:0;transform:scale(.84);transform-origin:center right}.sleeve{left:0;width:85px;height:85px}.record{right:0;width:71px;height:71px}.spark{font-size:20px;right:0}.title-note{margin-left:8px}.instrument{border-radius:17px;padding:17px 9px 8px}.console{grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:0 5px 13px}.speaker-strip{display:none}.screen{padding:7px 9px}.screen-shell{padding:3px;border-radius:9px}.screen-main{gap:5px}.screen-head{font-size:.65rem}.track-title{font-size:1.15rem}.counter{font-size:.73rem}#melody{width:65px;height:29px}.transport{gap:9px}.function-key{width:38px;height:34px}.transport button{font-size:.71rem;gap:7px}.keywell{padding:4px}#keys{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.key{height:107px;padding:5px 1px 11px}.key::before{height:4px}.frog-wrap{height:53px;margin-bottom:2px}.frog-wrap img{width:90%}.key-name{font-size:.79rem}.cap{margin-top:2px;min-width:15px;padding:0 3px;font-size:.64rem}.instrument-foot{padding:9px 9px 1px}.screw{width:6px;height:6px}.screw:after{width:3px;top:2px}.tl,.tr{top:6px}.bl,.br{bottom:5px}.below{margin:17px 2px 0;font-size:.72rem}}
@media(max-width:450px){.record-art{width:78px;transform:scale(.7);margin-left:-15px}.sleeve{left:-22px}.intro p{font-size:.79rem;max-width:22em}h1{font-size:2.38rem}.transport{flex-direction:column;gap:7px}.transport button{grid-auto-flow:column;align-items:center;gap:6px}.function-key{width:28px;height:24px;border-radius:6px}.function-key .icon{font-size:14px}.key{height:102px}.frog-wrap{height:46px}.below>span:nth-child(2){display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:700px){#keys::after{content:"";width:68%;height:50%;align-self:center;justify-self:center;background:radial-gradient(circle,#23382a 1.5px,#526954 2px,transparent 2.8px) 0 0/7px 7px;border-radius:12px}.below .keyboard-tip{display:none}.below>span:nth-child(2){display:inline-flex}}
.beat-status{gap:7px;font-weight:700}.beat-meter{display:inline-block;width:45px;height:6px;border-radius:3px;background:#849c73;overflow:hidden}.beat-meter i{display:block;width:100%;height:100%;background:#e8ffa6;transform-origin:left center}
.key.locked{background:#eeece1;color:#465144}
.key.locked img{filter:saturate(.7);opacity:.76}
.key-lock{position:absolute;top:13px;right:6px;font-size:15px;color:#425143}
.key-lock[hidden]{display:none}
.gate-open{display:inline-flex;align-items:center;gap:5px;border:1px solid #879977;border-radius:7px;padding:5px 8px;background:#e8efda;font-weight:750;font-size:.82rem}
.gate-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}
.gate-checklist>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 8px;background:#f0eee2;border-radius:6px;padding:7px 9px;font-size:.85rem}
.gate-checklist dd{margin:0;color:#565e50}
.gate-checklist .verified{color:#315e36;font-weight:750}
.gate-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.gate-actions .dismiss{padding:7px 10px}
#gate-check{background:#f1dfac}
#gate-check:disabled{opacity:.65;cursor:wait}
.gate-back{border:0;background:none;padding:7px 5px;text-decoration:underline;font-weight:700}
@media(max-width:450px){.key-lock{font-size:12px;top:7px;right:3px}}
.share-bar,.friend-recording{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;border:1.5px solid #879977;border-radius:12px}
.share-bar{margin:15px 0 0;background:#ebf0db}
.share-bar b,.share-bar span#share-count{display:block}
#share-count{color:#4e624c;font-size:.81rem;margin-top:3px}
.share-cta{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;background:#f8d96d;border:1.5px solid #4d5135;border-radius:8px;box-shadow:0 2px #747957;padding:9px 13px;color:#293929;font-size:.94rem;font-weight:850}
.share-cta:active{transform:translateY(2px);box-shadow:none}
.friend-recording{margin-top:14px;background:#eaf2d7;flex-wrap:wrap}
.friend-recording[hidden],.friend-recording [hidden],#share-card [hidden]{display:none}
.friend-recording h2{font-size:1.05rem;margin:0}
.friend-recording p{font-size:.84rem;margin:3px 0 0;color:#4e624c}
.friend-progress{display:flex;align-items:center;gap:8px;width:100%;font-size:.78rem}
.friend-progress progress{width:100%;height:9px;accent-color:#547750}
#friend-status:empty{display:none}
#share-card{width:min(390px,92vw);padding:16px 19px}
#share-title{font-size:1.23rem}
#share-poster{display:block;width:auto;max-width:100%;max-height:58dvh;margin:10px auto;border-radius:10px}
#share-status{margin:9px 0;color:#415841}
.share-actions{display:flex;flex-wrap:wrap;gap:7px}
#share-link{width:100%;margin-top:9px;padding:6px;font:inherit}
@media(max-width:450px){.share-bar{padding:10px;gap:7px}.share-cta{padding:8px 9px;font-size:.85rem}}
