.game-reward-instruction{text-align:center;font-size:clamp(13px,2.2vw,16px);color:#684999;margin:12px auto;max-width:640px;line-height:1.4;padding:0 12px;}
.reward-collection-hint{flex-basis:100%;font-size:16px;text-align:center;color:#684999;margin:8px;}
.rm-stars{flex-wrap:wrap;}
.result-modal{position:relative;box-sizing:border-box;max-width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;}
.book-unlock-list{display:flex;justify-content:center;width:100%;}
.sticker-claim{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:370px;padding:14px;border:3px solid #c5a4e9;border-radius:28px;background:#fff6db;color:#684599;cursor:pointer;position:relative;}
.sticker-claim .book-art{width:clamp(150px,38vw,230px);height:clamp(150px,38vw,230px);max-width:100%;}
.sticker-claim .book-seal{inset:6%;}.sticker-claim .book-seal img{width:100%;height:100%;object-fit:contain;}
.sticker-claim strong{font-size:22px;}.sticker-claim small{font-size:16px;}.sticker-claim:focus-visible{outline:4px solid #7f5acb;outline-offset:3px;}
.sticker-collected{opacity:.6;}.sticker-collected>span:last-child{position:absolute;inset:25% 0;color:#468e72;font-size:100px;}
.result-modal .rm-cat{display:none;}.result-modal .confetti{pointer-events:none;z-index:20;}
.reward-pop{position:fixed;z-index:40000;pointer-events:none;font-size:60px;color:#ffce4a;text-shadow:0 0 10px #fff1b6;animation:reward-pop .4s ease-out forwards;}
@keyframes reward-pop{from{transform:translate(-50%,-50%) scale(.4);opacity:1}to{transform:translate(-50%,-50%) scale(2.2) rotate(35deg);opacity:0}}
.rm-collect-star.collected{animation:star-pop .3s ease-out forwards;}.loot-token.claimed{visibility:hidden;}
@keyframes star-pop{to{transform:scale(1.7);opacity:0}}
.game-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;box-sizing:border-box;}
.game-head h1{min-width:0;margin:0!important;font-size:clamp(22px,4vw,36px);overflow-wrap:anywhere;text-align:center;line-height:1.2;}
.game-head .tutorial-help{margin:0;}.game-head>.btn{max-width:100%;}
.app-header{gap:12px;box-sizing:border-box;}.brand{min-width:0;}.header-actions,.app-header nav{display:flex;flex-wrap:wrap;gap:8px;min-width:0;}
.ld-header{gap:12px;flex-wrap:wrap;}.ld-nav{display:flex;flex-wrap:wrap;gap:8px;}.ld-brand{min-width:0;}
.drum-version{display:block;text-align:center;color:#806897;font-size:12px;margin-bottom:4px;}
@media(max-width:550px){.game-head{gap:8px;}.game-head .child-control{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;flex-basis:48px!important;background-size:32px!important;}.app-header{flex-wrap:wrap;}.rm-actions{gap:8px;flex-wrap:wrap;}}
body.landscape-play{overflow:hidden;height:100dvh;overscroll-behavior:none;}
body.landscape-play #screen{position:fixed;inset:8px 12px auto;height:calc(var(--play-height,100dvh) - 16px);width:calc(var(--play-width,100vw) - 24px);padding:0;margin:0;overflow:hidden;display:flex;align-items:flex-start;justify-content:center;max-width:none;}
body.landscape-play #screen>div{flex-shrink:0;margin:0;box-sizing:border-box;}
body.landscape-play .app-header{display:none;}body.landscape-play .tablet-menu-reveal{display:none;}
body.landscape-play .game-head{margin:0 0 6px;}.landscape-play .game-head h1{font-size:23px;}
body.landscape-play .game-reward-instruction{margin:4px auto;font-size:13px;}
body.landscape-play .rhythm-mia{display:none;}body.landscape-play .rhythm-card{padding:8px;}.landscape-play .rhythm-drum{height:110px;}.landscape-play .rhythm-line{min-height:55px;padding:4px;}.landscape-play .rhythm-block{height:70px;}.landscape-play .rhythm-block svg{height:42px;}
body.landscape-play .result-modal{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;}.landscape-play .rm-title{width:100%;margin:0;}.landscape-play .sticker-claim{max-width:260px;padding:8px;}.landscape-play .sticker-claim .book-art{width:130px;height:130px;}.landscape-play .book-unlock{padding:8px;}.landscape-play .book-unlock h3{margin:0;}
@media(prefers-reduced-motion:reduce){.reward-pop{animation:none;opacity:0;}.rm-collect-star.collected{animation:none;opacity:0;}}

.sticker-claim .book-seal img{left:0;top:0;}
.lvl-stepper{display:flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:100%;box-sizing:border-box;}.lvl-stepper>*{min-width:0;max-width:100%;}.lvl-stepper .lvl-name{overflow-wrap:anywhere;text-align:center;}
.ls-group{max-width:100%;box-sizing:border-box;flex-wrap:wrap;justify-content:center;}.ls-label,.ls-value{white-space:normal;overflow-wrap:anywhere;}.ls-name{min-width:0;overflow-wrap:anywhere;}
@media(orientation:landscape) and (max-height:650px){.game-head .child-control{min-width:48px!important;width:48px!important;min-height:48px!important;height:48px!important;background-size:32px!important;}}
.brand-block{min-width:0;flex:1 1 150px;}.brand-tagline{min-width:0;overflow-wrap:anywhere;}.app-nav{min-width:0;flex:0 1 auto;gap:8px;flex-wrap:wrap;}.ls-dots{flex-wrap:wrap;justify-content:center;}
