html{background:#241d36}body{background:radial-gradient(ellipse at top,#5b4266,#241d36 80%)}
header{flex-wrap:wrap;gap:8px}h1{font-size:22px;letter-spacing:1px;min-width:160px}h1 small{display:block;margin:4px 0}
.cabinet,.bottom-rim{background:linear-gradient(#776084,#40334f);border-color:#342742}
.stage{border-color:#674b70;border-top-color:#bf8d9d;border-bottom-color:#bf8d9d}
.feedbar{border-color:#342742;background:#45334f}
button#home{min-height:44px;background:#35415e;color:#fff2cc;border:1px solid #b7a1c7;border-radius:7px;padding:0 12px}
#hw-home{position:fixed;inset:0;z-index:10;background:#131d34f5;overflow:auto;padding:24px 14px;display:grid;place-items:safe center}
#hw-home[hidden]{display:none}.hw-card{width:min(660px,100%);padding:20px;border:2px solid #ae94bf;border-radius:20px;background:linear-gradient(#29425b,#28263e);text-align:center}
.hw-card h2{color:#ffe5a0;font-size:30px;margin:0 0 12px}.hw-card p{line-height:1.7}
#hw-mascot{width:180px;height:170px;margin:auto;border-radius:30px;background:linear-gradient(#715785,#443452);box-shadow:inset 0 0 25px #dcbdde55}
.hw-picker{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:16px 0}
.hw-picker button,.hw-card>button{min-height:44px;border:2px solid #9c81b3;border-radius:8px;background:#35405d;color:#fff4d5;font:inherit;padding:6px}
.hw-picker button[aria-pressed=true]{background:#70598a;border-color:#ffcf7e}.hw-card>button{background:#f3cc88;color:#342541;min-width:180px;font-weight:bold}
.hw-picker button{display:flex;flex-direction:column;align-items:center;font-size:12px;white-space:nowrap}.hw-picker .emoji{font-size:19px}
@media(max-width:600px){h1{font-size:19px}header a{font-size:11px}#pause,#menu{padding:0 10px}.hw-picker{grid-template-columns:repeat(4,1fr)}.bottom-rim{flex-wrap:wrap}.readout{flex-wrap:wrap}.hw-card{padding:12px}.feedbar select{min-height:44px}}
@media(max-width:400px){#hw-home{padding:10px}.hw-card h2{font-size:25px;margin-bottom:8px}#hw-mascot{width:130px;height:123px}.hw-card p{font-size:13px;line-height:1.4;margin:8px 0}.hw-picker{gap:4px;margin:10px 0}.hw-picker button{padding:3px;min-height:44px}.hw-picker .emoji{font-size:17px}#hw-error:empty{display:none}}
.shop button{border-color:#8e647e;border-radius:10px;background:linear-gradient(#ffedc6,#e8bf96)}
.shop button:disabled{background:#a18d9b;color:#3d3042}.feedbar select{background:#faefdb;color:#583d5e}
#menu,#pause,#sound,button#home{background:#513b60;border-color:#b491b2;color:#fff0ce;border-radius:10px}
#paused{background:#35233fe8}.help,#brmsg{color:#e6d4e3}
.hw-card{position:relative}.hw-card>button.hw-lang{position:absolute;right:8px;top:8px;min-width:54px;min-height:44px;padding:5px;font-size:12px}
header [data-hw-lang]{min-height:44px;border-radius:10px;background:#513b60;border:1px solid #b491b2;color:#fff0ce;padding:0 12px}
.hw-picker button{white-space:normal;overflow-wrap:anywhere;line-height:1.15}.hw-picker .emoji{line-height:1.3}
.feedbar{flex-wrap:wrap}.feedbar select{max-width:100%;min-width:0}.bottom-rim span{overflow-wrap:anywhere}
#mode-menu label{overflow-wrap:anywhere}#paused{overflow:auto;max-height:100%;place-content:safe center}#paused p{max-width:100%;overflow-wrap:anywhere}
.hw-audio{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
#hw-music,.hw-rank{min-height:44px;padding:0 12px;border:1px solid #b491b2;border-radius:10px;background:#513b60;color:#fff0ce}
#song-title{flex-basis:100%;overflow-wrap:anywhere}
@media(max-width:600px),(max-height:500px){.help,#brmsg{font-size:18px;line-height:1.55;overflow-wrap:anywhere}}
.hw-card>button.hw-rank{min-width:0;margin-top:6px}
@media(max-width:400px){.hw-card h2{padding:0 42px;font-size:22px}.hw-card>button.hw-lang{right:4px;top:4px;min-width:44px}.hw-picker button{font-size:11px}h1 small{font-size:11px}}
