:root{color-scheme:dark;--bg:#101f1c;--panel:#1a2d28;--line:#3b5147;--ink:#f1efdb;--muted:#a5b5a3;--mint:#c4e5ad;--gold:#f2c775;--blue:#8ab8d9;--red:#f4a68e}*{box-sizing:border-box}html{min-width:300px;background:var(--bg)}body{margin:0;background:radial-gradient(ellipse at 5% 8%,#29453765,transparent 50%),var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,a,summary,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button,a,summary{touch-action:manipulation}button{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--mint);outline-offset:5px}button:disabled{cursor:default;opacity:.48}a{color:var(--mint);text-underline-offset:4px}button{border:0}button:active:not(:disabled){transform:translateY(2px)}[hidden]{display:none!important}.page{max-width:890px;margin:auto;padding:0 36px}.masthead{display:flex;align-items:center;justify-content:space-between;padding:24px 0;border-bottom:1px solid #70866a36;gap:12px}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:11px;font-weight:750;letter-spacing:1.7px;white-space:nowrap}.brand svg{width:28px;height:28px;fill:none;stroke:var(--mint);stroke-width:1.4}.brand-divider{padding:0 6px;color:#71877b}.top-actions{display:flex;gap:10px}.top-actions button{background:transparent;border:1px solid #677e624d;min-height:44px;padding:0 13px;border-radius:24px;font-size:12px;color:#d3ddca}#sound-icon{font-size:18px;margin-right:7px}.intro{text-align:center;padding:36px 0 28px}.eyebrow{display:flex;align-items:center;justify-content:center;gap:9px;color:var(--mint);font-size:10px;font-weight:700;letter-spacing:2.1px;margin:0 0 16px}.live-dot{width:6px;height:6px;border-radius:50%;background:var(--mint);box-shadow:0 0 12px #c4e5ad50}h1{font-family:Georgia,"Times New Roman","Songti SC",serif;font-size:58px;line-height:1.04;letter-spacing:-2.3px;font-weight:400;margin:0}h1 br{display:none}h1{max-width:750px;margin:auto}.intro-copy{color:var(--muted);font-size:14px;margin:16px 0 0}.game-card,.result-card{background:linear-gradient(140deg,#21392f,#192b26 60%);border:1px solid #536d504f;border-radius:22px;box-shadow:0 22px 70px #0002;overflow:hidden}.game-topline{display:flex;align-items:center;gap:14px;padding:20px 28px 13px}.overline{font-size:11px;letter-spacing:1.8px;color:var(--muted);font-weight:650}.progress-dots{display:flex;gap:6px;margin-right:auto}.progress-dots i{width:6px;height:6px;border-radius:50%;background:#667c6750}.progress-dots i.current{background:var(--gold)}.progress-dots i.correct{background:var(--mint)}.progress-dots i.skipped,.progress-dots i.timeout{background:var(--red)}.timer{font-variant-numeric:tabular-nums;display:flex;align-items:baseline;gap:5px;color:var(--mint)}#timer-value{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:23px;letter-spacing:-1px}.timer>span:last-child{font-size:11px;color:var(--muted)}.time-track{height:2px;margin:0 28px;background:#e3ebc50d}.time-track div{height:100%;background:var(--mint);width:100%;transform-origin:left}.game-card.urgent .timer{color:var(--red)}.game-card.urgent .time-track div{background:var(--red)}.song-prompt{text-align:center;padding:21px 20px 0;min-height:97px}.prompt-label{font-size:9px;font-weight:700;letter-spacing:2.4px;color:var(--muted);margin:0 0 7px}h2{margin:0;font-size:30px;font-weight:650;letter-spacing:-.8px}.song-subtitle{font-family:Georgia,serif;font-size:13px;color:var(--muted);margin:5px 0 0}.typed-notes{display:flex;justify-content:center;gap:10px;margin:17px 0 8px;min-height:38px}.typed-slot{width:38px;height:38px;border-radius:50%;border:1px solid #79867270;display:flex;align-items:center;justify-content:center;color:var(--gold);font-size:22px;font-weight:600;background:#09191235}.typed-slot.empty:after{content:"";width:4px;height:4px;border-radius:50%;background:#83977b}.typed-slot.filled{border-color:#d6c181;background:#ceb37012}.status-message{text-align:center;font-size:12px;color:var(--muted);min-height:20px;margin:8px 18px 0}.status-message[data-tone=incorrect]{color:var(--red)}.status-message[data-tone=correct]{color:var(--mint)}.controller{display:flex;align-items:center;justify-content:center;gap:54px;padding:12px 0 5px;user-select:none}.a-zone{position:relative}.controller-label{position:absolute;top:91px;width:100%;text-align:center;color:#7f958e;font-size:9px;letter-spacing:3px}.note{width:74px;height:74px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid #ffedaa66;background:linear-gradient(145deg,#f5d58e,#d9af61);color:#26342b;box-shadow:0 5px 0 #a28143,0 7px 16px #0004;transition:filter .1s,transform .1s,box-shadow .1s}.note:hover{filter:brightness(1.08)}.note:active:not(:disabled),.note.pressed{transform:translateY(4px);box-shadow:0 1px 0 #a28143,0 3px 8px #0004}.note span{font-size:36px;line-height:1;transform:translateY(-1px)}.note-a{width:85px;height:85px;background:linear-gradient(145deg,#a3c9e3,#73a4c5);box-shadow:0 5px 0 #49748d,0 7px 18px #0005;border-color:#d6e9ec55}.note-a span{font-size:36px;font-weight:700}.note-a:active:not(:disabled),.note-a.pressed{box-shadow:0 1px 0 #49748d,0 3px 8px #0004}.c-zone{position:relative;display:grid;grid-template-columns:repeat(3,74px);grid-template-rows:repeat(3,58px);gap:2px;width:226px;height:190px;align-items:center;justify-items:center}.note-up{grid-area:1/2}.note-left{grid-area:2/1}.note-right{grid-area:2/3}.note-down{grid-area:3/2}.c-caption{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);font-size:11px;color:#9aab91;font-weight:700}.edit-actions{display:flex;align-items:center;justify-content:center;gap:10px;margin:14px 24px 0}.edit-actions button{min-height:44px;background:transparent;color:#c2d0b9;border:1px solid #93a78c38;border-radius:9px;padding:0 15px;font-size:12px}#skip-button{color:var(--gold);margin-left:12px}.keyboard-hint{text-align:center;font-size:10px;color:#819682;margin:13px 12px 21px}.free-note{font-size:11px;text-align:center;color:var(--muted);margin:20px 0 30px}.footer-main{display:flex;align-items:flex-start;justify-content:space-between;border-top:1px solid #70866a36;padding:22px 0 12px;gap:20px}.wordmark{font-family:Georgia,serif;font-size:18px;color:var(--ink);white-space:nowrap;padding-top:9px}.wordmark>span:first-child{font-style:italic;color:var(--muted)}.tiny-star{color:var(--mint);margin-left:9px}summary{cursor:pointer;min-height:44px;align-content:center;font-size:12px;color:var(--muted);padding:9px 2px;list-style-position:inside}summary::marker{color:var(--mint)}[data-studio-support-options]{max-width:430px;text-align:right}.support-methods{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-top:8px}.support-methods a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:7px 14px;border:1px solid #82957455;border-radius:8px;text-decoration:none;font-size:12px}.about{padding-bottom:22px}.about summary{font-size:10px}.about p,.about>a{font-size:12px;line-height:1.7;color:var(--muted);max-width:660px}.result-card{padding:32px;text-align:center}.result-card>.eyebrow{font-size:9px;letter-spacing:1.7px}.result-card h2{font-family:Georgia,"Songti SC",serif;font-size:37px;font-weight:400}.score{display:flex;align-items:baseline;justify-content:center;gap:13px;line-height:1.1;margin-top:12px}.score>span:first-child{font-family:Georgia,serif;font-size:112px;color:var(--mint)}.score-divider{font-size:37px;color:#829780}.score-label{font-size:12px;color:var(--muted);margin:0}.result-stats{font-size:12px;color:var(--ink);margin:18px 0 25px}.result-songs{border-top:1px solid #8b9e7c33;border-bottom:1px solid #8b9e7c33;max-width:450px;margin:auto;padding:8px 0;text-align:left}.result-song{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:9px 0;font-size:13px}.result-song .outcome{font-size:11px;color:var(--muted);white-space:nowrap}.outcome.correct{color:var(--mint)}.share-invite{font-size:12px;color:var(--muted);margin:24px 0 16px}.result-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.primary-button,.secondary-button{min-height:48px;padding:0 21px;border-radius:10px;font-weight:650;font-size:13px}.primary-button{background:var(--mint);color:#182d24}.secondary-button{background:transparent;border:1px solid #82957470;color:var(--ink)}.share-feedback{font-size:12px;color:var(--mint);min-height:16px;margin:12px 0 0}.replay-actions{display:flex;justify-content:center;gap:20px;margin-top:12px}.replay-actions button{min-height:44px;font-size:12px;background:transparent;color:var(--muted)}#new-button{color:var(--gold)}.answer-details{max-width:450px;margin:12px auto 0;border-top:1px solid #8b9e7c33}.answer-details summary{font-size:11px}.answer-row{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px;font-size:11px;margin:12px 0}.answer-row code{letter-spacing:3px;color:var(--gold);font-size:15px;white-space:nowrap}#copy-fallback{max-width:500px;margin:12px auto}#copy-fallback label{display:block;text-align:left;font-size:12px;margin-bottom:8px}#challenge-link{width:100%;border:1px solid #94a48270;border-radius:6px;background:#152720;color:var(--ink);padding:12px;font:inherit;font-size:12px;min-height:44px}.image-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px}.noscript{text-align:center;padding:20px}html[lang=zh] h1{font-size:49px;letter-spacing:0;line-height:1.2}html[lang=zh] .eyebrow{letter-spacing:1px}html[lang=zh] .song-prompt{min-height:114px}
@media(min-width:720px){.game-card{max-width:650px;margin:auto}.result-card{max-width:650px;margin:auto}h1{max-width:650px}h1 br{display:block}}
@media(max-width:600px){.page{padding:0 18px}.masthead{padding:13px 0}.brand{font-size:9px;letter-spacing:1px;gap:7px}.brand svg{width:24px;height:24px}.brand-divider{padding:0 2px}.top-actions{gap:6px}.top-actions button{padding:0 11px;font-size:11px}#sound-label{display:none}#sound-icon{margin:0;font-size:20px}.intro{padding:26px 0 22px}.eyebrow{font-size:8px;letter-spacing:1.6px;margin-bottom:12px}h1{font-size:42px;letter-spacing:-1.5px;line-height:1.04;max-width:330px}h1 br{display:block}.intro-copy{font-size:11px;margin-top:12px}.game-card{border-radius:17px}.game-topline{padding:14px 18px 9px;gap:10px}.overline{font-size:9px;letter-spacing:1.4px}.time-track{margin:0 18px}#timer-value{font-size:21px}.song-prompt{padding-top:18px;min-height:85px}.prompt-label{font-size:8px;letter-spacing:2px}h2{font-size:25px;letter-spacing:-.5px}.typed-notes{gap:8px;margin-top:10px;min-height:33px}.typed-slot{width:33px;height:33px;font-size:20px}.status-message{font-size:11px;margin-top:8px;min-height:18px}.controller{gap:26px;padding-top:14px}.note{width:64px;height:64px}.note span{font-size:31px}.note-a{width:72px;height:72px}.note-a span{font-size:31px}.c-zone{grid-template-columns:repeat(3,62px);grid-template-rows:repeat(3,52px);width:190px;height:166px}.controller-label{top:80px;font-size:8px}.edit-actions{margin:10px 12px 0;gap:6px}.edit-actions button{padding:0 12px;font-size:11px}#skip-button{margin-left:6px}.keyboard-hint{font-size:9px;margin:11px 6px 16px}.free-note{font-size:10px;margin:17px 0 22px}.footer-main{padding:13px 0 4px;gap:9px}.wordmark{font-size:15px}.tiny-star{margin-left:5px}.footer-main summary{font-size:11px}.support-methods a{padding:7px 10px;font-size:11px}.about{padding-bottom:16px}.result-card{padding:27px 21px;border-radius:17px}.result-card h2{font-size:29px}.result-card>.eyebrow{font-size:8px}.score>span:first-child{font-size:94px}.result-stats{font-size:11px}.result-song{font-size:12px}.result-song .outcome{font-size:10px}.share-invite{font-size:11px;line-height:1.6}.primary-button,.secondary-button{padding:0 13px;font-size:11px}.result-actions{gap:8px}.replay-actions{gap:13px}.replay-actions button{font-size:11px}.answer-row{font-size:10px}.answer-row code{font-size:13px;letter-spacing:2px}html[lang=zh] h1{font-size:38px;max-width:310px}html[lang=zh] .song-prompt{min-height:102px}html[lang=zh] .song-subtitle{font-size:11px}}
@media(max-width:350px){.page{padding:0 12px}.controller{gap:16px}.intro-copy{font-size:10px}.brand{letter-spacing:.4px}.note{width:60px;height:60px}.c-zone{grid-template-columns:repeat(3,59px);width:181px}.footer-main{flex-wrap:wrap}[data-studio-support-options]{text-align:left}.support-methods{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Readable controls remain close to the instrument on small screens. */
.top-actions button,.intro-copy,.status-message,.edit-actions button,.result-song,.result-stats,.share-invite,.share-feedback,.replay-actions button,.primary-button,.secondary-button,summary,.support-methods a,.about p,.about>a,.image-link{font-size:14px}.eyebrow,.overline,.prompt-label,.keyboard-hint,.free-note,.about summary,.result-song .outcome,.answer-details summary{font-size:12px}.answer-row{font-size:13px}.result-card>.eyebrow{font-size:12px}.brand{font-size:12px;letter-spacing:1px}.intro-copy{line-height:1.5}.status-message{min-height:22px;line-height:1.5}.keyboard-hint{line-height:1.5}.footer-main summary{font-size:14px}
@media(max-width:600px){.intro{padding:19px 0 18px}.intro>.eyebrow{font-size:10px;letter-spacing:1px;margin-bottom:10px}h1{font-size:35px;max-width:330px}.intro-copy{font-size:14px;max-width:300px;margin:11px auto 0;line-height:1.4}.brand{font-size:10px;letter-spacing:.5px}.brand-divider{padding:0}.top-actions button{font-size:14px}.game-topline{padding-top:12px}.overline{font-size:12px;letter-spacing:.5px}.progress-dots{gap:4px}.prompt-label{font-size:11px;letter-spacing:1px}.song-prompt{min-height:81px;padding-top:16px}.status-message{font-size:14px;min-height:23px;margin-left:13px;margin-right:13px}.edit-actions button{font-size:14px;padding:0 10px}.keyboard-hint{font-size:12px;max-width:290px;margin:12px auto 15px}.free-note{font-size:12px;line-height:1.5;margin:15px 0 18px}.footer-main summary,.support-methods a{font-size:14px}.wordmark{font-size:15px}.result-card>.eyebrow{font-size:11px;line-height:1.5}.result-stats,.result-song,.share-invite,.share-feedback,.replay-actions button,.primary-button,.secondary-button{font-size:14px}.result-song .outcome{font-size:12px}.result-actions{gap:10px}.result-actions button{flex:1 1 200px}.answer-row{font-size:12px}.answer-details summary{font-size:12px}html[lang=zh] h1{font-size:34px}html[lang=zh] .song-subtitle{font-size:12px}}

.top-actions button{min-width:44px}.about p{font-size:16px}
