/* Post-attempt character and reward reveal keep the flying scene uncluttered. */
#maestro-panel{display:flex;align-items:center;gap:0;text-align:left;margin:-10px -12px 17px;min-height:119px;animation:maestro-entrance .48s cubic-bezier(.16,.85,.28,1.15) both}
#maestro-panel img{width:42%;height:auto;position:relative;z-index:1;transform:rotate(-5deg);filter:drop-shadow(2px 7px 0 #29113a45) drop-shadow(0 0 12px #b761ed55)}
.maestro-bubble{position:relative;z-index:2;flex:1;margin-left:-10px;background:linear-gradient(145deg,#fff9dd 4%,#fff 48%,#c6eafa 100%);border:3px solid #4b1d67;border-radius:25px 29px 24px 6px;padding:14px 13px;box-shadow:0 5px 0 #46215d,0 8px 0 #c68bee,inset 0 3px #fff,3px 14px 15px #371b4c28;transform:rotate(3deg)}
.maestro-bubble:before{content:'';position:absolute;width:19px;height:17px;left:-13px;bottom:13px;background:#f5fbff;border-left:3px solid #4b1d67;border-bottom:3px solid #4b1d67;transform:skew(-25deg) rotate(20deg);border-radius:0 0 0 5px}
.maestro-bubble small{display:block;font-size:12px;font-weight:900;letter-spacing:.7px;color:#8851a2;margin-bottom:6px}
.maestro-bubble b{display:block;font-size:clamp(15px,4.7vw,20px);font-weight:950;line-height:1.16;letter-spacing:-.3px;color:#40204e;text-shadow:0 1px #fff}
#rescued-rewards{text-align:left;margin:-4px 0 18px;background:#eee1f3;border-radius:14px;padding:10px 12px;color:#5e3976;font-size:12px}
#rescued-rewards summary{cursor:pointer;font-weight:850;line-height:1.4}
.reward-list{display:grid;gap:8px;padding-top:12px;max-height:220px;overflow:auto}
.reward-list>div{display:flex;align-items:center;gap:8px}
.reward-list i{width:15px;height:15px;border-radius:50%;box-shadow:inset -2px -2px #0002,0 1px 2px #30204544}
.reward-list b{margin-left:auto;color:#845813}
#result:has(#maestro-panel:not([hidden])) .result-card{margin-top:0}
#result:has(#maestro-panel:not([hidden])) #stars{display:none}
#result:has(#maestro-panel:not([hidden])) #result-title{font-size:27px;margin:8px 0}
#result:has(#maestro-panel:not([hidden])) #result-detail{margin:10px 0}
#result:has(#maestro-panel:not([hidden])) #result-score{margin-bottom:13px}
@keyframes maestro-entrance{from{opacity:0;transform:translateY(18px) scale(.85)}to{opacity:1;transform:none}}
@media(max-height:700px){#maestro-panel{min-height:90px;margin-bottom:11px}#maestro-panel img{width:34%}.maestro-bubble{padding:10px}.maestro-bubble b{font-size:16px}#result:has(#maestro-panel:not([hidden])) .result-card{padding-top:17px}}
@media(prefers-reduced-motion:reduce){#maestro-panel{animation:none}}
/* Keep visible toolbar controls usable above the retry backdrop. */
header{z-index:9}
#settings,#progress-panel{z-index:50}
#loading{z-index:11}
#error{z-index:12}

/* Every filled symbol is a real, persistent instrument in this arrangement. */
.goal{min-width:108px}
.goal>span{font-size:12px!important}
#music-parts{display:flex;justify-content:flex-end;gap:4px;flex-wrap:wrap;max-width:146px;margin-top:5px}
#music-parts i{display:grid;place-items:center;width:18px;height:20px;border-radius:6px;font-size:13px;font-style:normal;color:#ffffff70;background:#24143e66;border:1px solid #ffffff30;transition:background .3s,color .3s,box-shadow .3s,transform .3s}
#music-parts i.rescued{color:#39204f;background:linear-gradient(145deg,#fff9b4,#ffd460);border-color:#fff2ac;box-shadow:0 0 12px #ffe37b80,inset 0 1px #fff;transform:translateY(-2px)}
.album-track{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;border-radius:18px}
.album-track.current .level-tile{background:#fff1c2;color:#4a2a65}
.album-track .level-tile{width:100%;margin:0}
.listen-song{padding:10px 14px;background:#6e3b92;color:#fff;border:0;border-radius:12px;font-size:13px;font-weight:800}
@media(max-width:500px){.level h1{font-size:19px}.goal{min-width:99px}#music-parts{max-width:112px;gap:3px}#music-parts i{width:16px;height:18px;font-size:12px}}
