:root{--ink:#0b2053;--navy:#0b2561;--deep:#08246d;--blue:#1350af;--pink:#ff348d;--cyan:#36dffa;--gold:#ffc52e;--purple:#9158ff;--edge:#111e65;--white:#fff;--s:1; font-family:"Arial Rounded MT Bold","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif;color:white}
*{box-sizing:border-box}html{background:#0b1d65}body{margin:0;min-height:100dvh;overscroll-behavior:none}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:3px solid #ffdd4f;outline-offset:3px}[hidden]{display:none!important}
.app-shell{position:relative;max-width:680px;margin:0 auto;min-height:100dvh;background:radial-gradient(ellipse at 50% 4%,#37d4ff 0%,#1876ed 27%,#4740c6 55%,#23166a 100%);overflow:hidden;box-shadow:0 0 0 1px #185ed9,0 0 80px #06082f}
.app-shell:before{content:"";pointer-events:none;position:absolute;inset:0;background:radial-gradient(circle at 8% 22%,#ffc4f344,transparent 20%),radial-gradient(circle at 96% 51%,#79dfff3b,transparent 18%),repeating-linear-gradient(115deg,transparent 0 32px,#ffffff08 34px 36px,transparent 38px 79px);opacity:.7}
.ambient{position:absolute;pointer-events:none;border-radius:50%;filter:blur(42px);opacity:.3}.ambient-1{width:200px;height:200px;background:#ff4ba8;top:60%;left:-70px}.ambient-2{width:260px;height:260px;background:#4fffe7;right:-120px;top:20%}
.screen{display:none;position:relative;z-index:1;min-height:100dvh;padding:12px 16px 24px;animation:enter .22s ease-out}.screen.active{display:block}@keyframes enter{from{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:none}}
.panel{background:linear-gradient(160deg,#ffffff 0%,#e9f8ff 100%);border:3px solid #1166c4;border-radius:22px;color:var(--ink);box-shadow:0 5px 0 #08337d,0 13px 28px #050d4180}
button:active:not(:disabled){transform:translateY(2px)}.mini-header{display:flex;align-items:center;gap:12px;margin:2px 0 20px}.mini-header h1{margin:0;font-size:clamp(24px,7vw,34px);font-weight:1000;line-height:1.15;text-shadow:2px 4px #07206d}.mini-header small{display:block;font-size:11px;color:#c6efff;font-weight:800;letter-spacing:2px;margin-bottom:4px}.back-button{flex-shrink:0;width:49px;height:49px;border:3px solid white;border-radius:17px;background:linear-gradient(#35b9ff,#0666c6);color:white;font-weight:1000;font-size:31px;box-shadow:0 4px 0 #063b88}.mini-medal{margin-left:auto;background:linear-gradient(#173c83,#091d61);border:2px solid #74ddff;border-radius:18px;white-space:nowrap;padding:10px 12px;font-size:17px;font-weight:1000}
.home-screen{padding:0 14px 25px}.hero-art{width:calc(100% + 28px);margin:0 -14px;aspect-ratio:941/996;background-image:url('assets/title-hero.webp');background-size:100% 100%;background-position:center top;position:relative}.hero-art:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:13%;background:linear-gradient(transparent,#3a42be)}.home-actions{position:relative;margin-top:-12px;padding:0 3px}.ticker{text-align:center;color:#fff4ad;font-weight:1000;font-size:13px;letter-spacing:.3px;text-shadow:1px 2px #213179;margin:0 0 9px}.ticker span{color:#fe74e8}.big-button{width:100%;min-height:79px;margin-bottom:10px;padding:12px 14px;display:flex;align-items:center;gap:10px;text-align:left;color:white;border:3px solid white;border-radius:22px;box-shadow:0 6px 0 #12226b,0 8px 20px #0a134d90;text-shadow:1px 2px #222a79;transition:filter .15s}.big-button:hover{filter:brightness(1.09)}.big-button strong{display:block;font-size:clamp(20px,5vw,28px);line-height:1.15;font-weight:1000}.big-button small{display:block;font-size:12px;color:#faffff;font-weight:800;margin-top:4px}.big-button.pink{background:linear-gradient(110deg,#ff3364,#ed3daf,#ae2ec9)}.big-button.cyan{background:linear-gradient(110deg,#008cde,#11bddd,#1663cf)}.big-button.violet{background:linear-gradient(110deg,#7647f1,#c042ec,#ec58c5)}.button-icon{font-size:31px;flex:0 0 42px;display:grid;place-items:center;filter:drop-shadow(2px 3px 0 #4c2889)}.big-button .arrow{margin-left:auto;font-size:38px;line-height:1}.home-stats{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:12px}.pill{background:#101d71c9;border:1px solid #75dffc;border-radius:99px;padding:7px 12px;font-weight:800;font-size:13px}.settings-link{color:#e1f9ff;background:transparent;border:0;text-decoration:underline;font-weight:800;font-size:12px}
.mode-content{display:flex;flex-direction:column;gap:12px}.mode-content .panel{padding:18px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:6px;font-weight:1000;font-size:17px}.tag{font-size:10px;border-radius:99px;background:#e5deff;padding:7px;color:#7048bb;white-space:nowrap}.level-line{display:flex;justify-content:center;align-items:center;gap:28px;margin:25px 0 9px}.level-line small{display:block;text-align:center;font-size:12px;font-weight:800;color:#43589c}.level-number{font-size:30px;font-weight:1000;white-space:nowrap;color:#ed2c97;letter-spacing:-.7px}.level-number span{font-size:42px}.round-button{width:48px;height:48px;border-radius:50%;background:linear-gradient(#35d7fa,#1683d8);border:2px solid #1172c2;color:#fff;font-size:30px;font-weight:1000;box-shadow:0 3px 0 #0c4da7}.center{text-align:center}.quiet{font-weight:750;color:#6674a0;font-size:13px}.challenge-info{display:flex;justify-content:space-around;gap:4px;background:#e8effe;border-radius:14px;padding:12px 5px;margin:15px 0;color:#25509b;font-size:12px;font-weight:900}.challenge-info b{font-size:16px}.hint{font-size:12px;color:#50618a;line-height:1.6;font-weight:650}.wide-cta{display:flex;justify-content:center;gap:20px;align-items:center;width:100%;border:3px solid #fff;color:#fff;background:linear-gradient(110deg,#ff5b77,#ff3698,#ad2cf3);font-weight:1000;font-size:20px;border-radius:18px;padding:13px 15px;box-shadow:0 5px 0 #6c2b87;text-shadow:0 2px #792164}.wide-cta span{font-size:23px}.seal-side{display:flex;flex-direction:column;align-items:center;position:relative;padding:0 20px}.seal-holder{width:min(240px,65vw);height:230px;filter:drop-shadow(0 9px 3px #0a186b55)}.seal-holder svg{width:100%;height:100%;overflow:visible}.seal-idle svg{animation:seal-bop .72s ease-in-out infinite alternate;transform-origin:50% 88%}.bubble,.wardrobe-talk{position:relative;margin-top:-14px;padding:10px 18px;background:#fff;color:#1a3480;border:3px solid #1f78d1;border-radius:18px;text-align:center;font-size:12px;font-weight:1000;box-shadow:0 3px #18378e;z-index:1;line-height:1.6}@keyframes seal-bop{from{transform:rotate(-6deg) translateY(2px)}to{transform:rotate(7deg) translateY(-7px)}}
.bpm-editor{margin:15px 0 10px}.bpm-editor label{display:block;color:#32529d;font-weight:900;font-size:13px;margin-bottom:8px}.bpm-actions{display:flex;gap:7px}.bpm-actions button{background:#0e70c4;color:white;border:0;border-radius:12px;font-weight:1000;padding:9px 15px}.bpm-actions input{min-width:0;width:100%;background:#effbff;border:2px solid #4794e2;border-radius:13px;font-size:24px;font-weight:1000;text-align:center;color:#163a86}.editor-intro{font-size:12px;font-weight:700;color:#4e6394;line-height:1.6}.edit-actions{display:flex;gap:6px;margin:10px 0}.edit-actions button{flex:1;border:1px solid #a8bdea;background:#e0eaff;color:#274a9d;border-radius:9px;padding:9px 0;font-size:12px;font-weight:950}.manual-grid{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}.manual-bar{border-radius:11px;background:#f0f5ff;border:1px solid #bfd6f4;padding:8px}.manual-bar-title{font-size:12px;font-weight:900;color:#2359ad;margin-bottom:8px;display:flex;justify-content:space-between}.manual-steps{display:grid;grid-template-columns:repeat(16,1fr);gap:2px}.manual-cell{min-width:0;height:32px;border:1px solid #bdc8ed;border-radius:5px;color:#7186b3;background:#fff;font-size:10px;padding:0;font-weight:1000}.manual-cell.on{background:linear-gradient(#ff61ad,#e72e94);border-color:#b7187c;color:white;box-shadow:0 2px #971a70}.manual-cell.beat-edge{border-left:3px solid #2d71c1}.manual-cell:focus-visible{z-index:2}
.game-screen{padding:10px 11px 22px;display:none;flex-direction:column;min-height:100dvh}.game-screen.active{display:flex}.game-header{display:flex;align-items:center;gap:9px}.game-header .back-button{width:46px;height:46px;font-size:21px;border-radius:16px}.game-header>div:nth-child(2){flex:1;min-width:0}.mini-game-title{font-size:15px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:1px 2px #082878}.mode-label{font-size:11px;font-weight:900;color:#bdf7ff}.bpm-tag{font-size:11px;font-weight:800;background:#112c80;border:2px solid #41e5fa;border-radius:13px;text-align:center;padding:4px 10px;white-space:nowrap}.bpm-tag strong{display:block;font-size:24px;line-height:1}.game-score-row{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:10px 0}.counter{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;background:#092b71c6;border:2px solid #5bcafa;border-radius:14px;padding:6px 10px;box-shadow:0 3px #17246a}.counter span{font-size:10px;font-weight:900;color:#dcefff}.counter b{font-size:23px;font-weight:1000;color:#ffe970}.counter.center{align-items:center;background:#a31d8b77}.counter.right{align-items:flex-end}.countin-banner{display:none;text-align:center;border-radius:12px;background:#ffe849;color:#182981;font-size:24px;font-weight:1000;padding:8px;margin:0 0 8px}.countin-banner.shown{display:block}.countin-overlay{position:absolute;inset:110px 0 auto 0;display:none;z-index:8;pointer-events:none;text-align:center;font-size:clamp(58px,22vw,126px);font-weight:1000;line-height:1;color:#fff26c;text-shadow:-4px -4px 0 #ff2b91,4px -4px 0 #ff2b91,-4px 4px 0 #ff2b91,4px 4px 0 #ff2b91,0 8px 0 #2f41a8,0 12px 24px #00194f}.countin-overlay.shown{display:block;animation:count-burst .26s ease-out}.countin-overlay.start{color:#a7ff7b;text-shadow:-4px -4px 0 #08b274,4px -4px 0 #08b274,-4px 4px 0 #08b274,4px 4px 0 #08b274,0 8px 0 #196c4b,0 12px 24px #00194f}@keyframes count-burst{from{transform:scale(.6);opacity:.1}to{transform:scale(1);opacity:1}}.score-container{padding:11px 10px 12px;box-shadow:0 3px #063177,0 6px 15px #152d8880}.score-heading{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px;align-items:center}.score-heading b{font-size:15px;color:#153985}.score-heading span{font-size:10px;color:#4366a1;font-weight:900}.score-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:154px;overflow-y:auto;padding:1px}.overview-bar{background:#e6f0ff;border:2px solid #c3d8fc;border-radius:10px;padding:7px 5px}.overview-bar.current{background:#fff4b4;border-color:#ef9a14;box-shadow:0 0 0 2px #ffe17077 inset}.overview-bar.done{opacity:.67}.overview-bar-label{font-size:10px;color:#3d5ca0;font-weight:1000;padding-left:2px;margin-bottom:5px}.overview-dots{display:grid;grid-template-columns:repeat(16,1fr);gap:2px}.overview-dot{height:11px;min-width:0;background:#ccd7eb;border-radius:3px}.overview-dot.note{background:linear-gradient(#fc88bc,#ed368c)}.overview-dot.hit{background:linear-gradient(#b0ffd7,#32b980)}.overview-dot.playhead{outline:2px solid #ff9b00;outline-offset:1px}.score-focus{margin-top:10px;border-radius:14px;background:#eaf7ff;padding:9px 7px 6px;border:1px solid #b7ceec}.focus-label{display:flex;justify-content:space-between;align-items:center;padding:0 2px 8px;color:#174a8e}.focus-label b{font-size:14px}.focus-label small{font-size:10px;color:#6c7fa0}.focus-grid{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:2px}.focus-cell{height:43px;min-width:0;border:1px solid #d2e1f4;border-radius:5px;background:white;display:flex;align-items:center;justify-content:center;color:#c3cddd;font-weight:1000;font-size:13px;position:relative}.focus-cell:nth-child(4n + 1){border-left:2px solid #3671af}.focus-cell.on{background:#ffe6f4;color:#e52b9f;font-size:19px}.focus-cell.on::after{content:"TAP";position:absolute;bottom:1px;left:0;right:0;text-align:center;font-size:8px;font-weight:1000;color:#9b2870;letter-spacing:.4px}.focus-cell.hit{background:#c5ffde;color:#0c9c7c}.focus-cell.current{background:#fff273;outline:2px solid #fa9c15;z-index:1}.focus-cell.current.on{color:#d71572;box-shadow:0 0 0 3px #fff1a5 inset}.beat-labels{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;color:#50719e;font-size:11px;font-weight:1000;margin-top:4px}.game-center{flex:1;position:relative;min-height:170px;display:flex;align-items:center;justify-content:center}.game-feedback{position:absolute;z-index:4;top:1%;left:0;right:0;text-align:center;font-size:clamp(23px,7vw,38px);letter-spacing:1px;font-style:italic;font-weight:1000;color:#ffea43;text-shadow:-3px -3px 0 #d93494,3px -3px 0 #d93494,-3px 3px 0 #d93494,3px 3px 0 #d93494,0 6px 0 #423299,0 10px 14px #02092aa1;pointer-events:none;transform:rotate(-3deg)}.game-feedback.flash{animation:feedback-pop .24s ease-out}@keyframes feedback-pop{from{transform:scale(.7) rotate(-7deg);opacity:.2}to{transform:scale(1) rotate(-3deg);opacity:1}}.game-seal{width:min(218px,46vw);height:192px;margin-top:24px;position:relative;z-index:2;filter:drop-shadow(0 12px 4px #111f655c)}.game-seal svg{height:100%;width:100%;overflow:visible;transform-origin:50% 88%;animation:seal-bop var(--dance-sec,.55s) ease-in-out infinite alternate}.game-bubble{position:absolute;bottom:8px;right:0;max-width:128px;padding:8px 11px;border:2px solid #2682d2;border-radius:13px;background:white;color:#1b3a83;font-size:10px;font-weight:900;line-height:1.4;z-index:3;transform:rotate(3deg)}.tap-section{margin-top:auto}.tap-hitzone{position:relative;border:3px solid #79f2ff;border-radius:22px;padding:10px 10px 12px;background:linear-gradient(180deg,#ffffff1c,#56d6ff12);box-shadow:0 0 0 3px #ffffff24 inset,0 8px 20px #03195d6e}.tap-hitzone::before,.tap-hitzone::after{content:"";position:absolute;top:-18px;width:0;height:0;border-left:14px solid transparent;border-right:14px solid transparent;border-top:18px solid #ffe64d;filter:drop-shadow(0 2px 0 #eb4f9e)}.tap-hitzone::before{left:19%}.tap-hitzone::after{right:19%}.tap-callout{text-align:center;font-size:19px;font-weight:1000;color:#fff37d;text-shadow:1px 2px #132c88;margin-bottom:2px;letter-spacing:.5px}.tap-instruction{text-align:center;font-size:15px;font-weight:1000;letter-spacing:.2px;color:#fff9bc;text-shadow:1px 2px #1b2382;margin:4px 0 10px}.tap-instruction small{font-size:11px;color:#d3efff;display:block;margin-top:4px}.tap-pads{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.tap-pad{aspect-ratio:1/1;border-radius:50%;border:4px solid white;color:white;font-size:clamp(25px,8vw,48px);font-weight:1000;box-shadow:0 6px 0 #142d7c,0 0 20px #aeeeff7c,inset 0 -6px #00000020;touch-action:manipulation;user-select:none;transition:filter .12s,transform .08s,box-shadow .12s;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;position:relative;overflow:hidden}.tap-pad small{font-size:11px;line-height:1;font-weight:1000;letter-spacing:1px;opacity:.95}.tap-pad .pad-note{display:block;line-height:1}.tap-pad:active{transform:scale(.9)}.tap-pad.pressed{filter:brightness(1.45);transform:scale(.92)}.tap-pad.guide{box-shadow:0 6px 0 #142d7c,0 0 0 5px #fff5a5,0 0 26px #fff2a0,inset 0 -6px #00000020;animation:tap-guide-pulse .55s ease-in-out infinite alternate}@keyframes tap-guide-pulse{from{transform:scale(1)}to{transform:scale(1.03)}}.pad-pink{background:radial-gradient(circle at 30% 25%,#ff92d0,#e6159e)}.pad-cyan{background:radial-gradient(circle at 30% 25%,#8bf8ff,#0095e7)}.pad-green{background:radial-gradient(circle at 30% 25%,#8dffcb,#06b279)}.pad-gold{background:radial-gradient(circle at 30% 25%,#ffef92,#ff9518)}.game-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;font-weight:1000;font-size:12px}.game-bottom>div{border-radius:12px;background:#072c7bbd;padding:8px 11px;border:1px solid #44c7f4}#judgment-score{color:#fff2ad}
.wardrobe-screen{padding-bottom:28px}.wardrobe-screen .mini-header{margin-bottom:4px}.wardrobe-top{display:flex;flex-direction:column;align-items:center;min-height:226px;position:relative}.wardrobe-seal{height:212px;width:237px}.wardrobe-talk{font-size:11px;line-height:1.3;position:absolute;right:0;top:62px;padding:7px 9px;border:2px solid #58c7fc;max-width:125px;transform:rotate(5deg)}.wardrobe-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:-4px 0 14px}#unequip-all{border:2px solid #aedfff;color:#fff;background:#1453af;border-radius:12px;padding:8px 11px;font-size:12px;font-weight:900}.wardrobe-count{font-size:12px;font-weight:900;color:#e9faff}.wardrobe-section{background:#ffffffec;border:3px solid #4cc5fe;border-radius:19px;box-shadow:0 6px 0 #13246f;padding:11px 9px;color:#1a3a7c}.category-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.category-tab{border:2px solid #b1c7ee;border-radius:10px;background:#eaf3ff;color:#4265a4;padding:7px 3px;font-size:12px;font-weight:1000}.category-tab.active{border-color:#ed369c;background:#ffd5ec;color:#b7137c}.genre-tabs{display:flex;gap:6px;margin:11px 0}.genre-tab{flex:1;border:2px solid #b8c5ef;border-radius:99px;background:#eae6fe;color:#474089;font-size:12px;font-weight:1000;padding:9px 3px}.genre-tab.active{background:linear-gradient(100deg,#ff65ae,#ed34a0);border-color:#b61c85;color:white}.item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:335px;overflow-y:auto;padding:3px}.item-card{background:#f0f5ff;border:2px solid #b5c6ec;border-radius:15px;overflow:hidden;padding:8px 5px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;min-height:150px}.item-card.equipped{border-color:#13b78d;background:#e0fff3}.item-card .item-emoji{font-size:42px;height:48px;line-height:1.1}.item-name{font-size:13px;font-weight:1000;line-height:1.3}.item-price{font-size:11px;color:#777ca4;font-weight:900}.item-action{margin-top:auto;border:0;border-radius:9px;background:#196ccb;color:white;padding:7px 8px;width:95%;font-size:12px;font-weight:1000}.item-card.equipped .item-action{background:#12a97e}.item-card .item-action.buy{background:linear-gradient(110deg,#f89b1d,#ef4c70)}.item-card .item-action.no-money{background:#8a9ebd}.shop-hint{text-align:center;font-size:11px;color:#63769d;margin:12px 4px 2px}
.result-screen{display:flex;align-items:center;justify-content:center;display:none}.result-screen.active{display:flex}.result-panel{width:100%;padding:25px 20px 18px;text-align:center;margin:auto 0}.result-glow{font-size:40px}.result-panel h1{font-size:clamp(27px,8vw,40px);line-height:1.15;font-weight:1000;color:#f523a6;text-shadow:1px 2px #fec7ed;margin:5px 0 9px}.result-panel.failed h1{color:#3759a4;text-shadow:none}.result-panel p{font-size:15px;color:#45578c;font-weight:900;margin:0 0 5px}.result-seal{width:180px;height:170px;margin:0 auto}.result-seal svg{width:100%;height:100%;animation:seal-bop .55s infinite alternate;transform-origin:50% 85%}.result-stats{display:flex;justify-content:space-around;gap:8px;padding:12px 0;font-size:12px;font-weight:900;color:#2a4e9b}.result-stats span{background:#e7eefa;border-radius:9px;padding:9px 5px;flex:1}.reward-pill{background:#fff4c1;border:2px solid #f1c34a;color:#b87800;border-radius:13px;padding:12px;font-size:19px;font-weight:1000;margin-bottom:17px}.result-panel.failed .reward-pill{background:#e5edfb;color:#5e75a5;border-color:#bbc8dd}.result-actions{display:grid;gap:11px}.outline-cta{border:2px solid #1a80ca;background:#e8f6ff;color:#1756a0;padding:12px;border-radius:14px;font-weight:1000;font-size:16px}.text-cta{background:none;border:0;color:#476b9f;text-decoration:underline;font-weight:1000;padding:7px}
.overlay{position:absolute;inset:0;z-index:30;background:#05123acb;display:flex;justify-content:center;align-items:center;padding:22px;min-height:100dvh}.dialog{width:100%;max-width:430px;padding:22px}.dialog-title{font-size:23px;font-weight:1000;color:#cb26a0;margin-bottom:13px}.dialog p{color:#455e8c;font-size:14px;line-height:1.8;font-weight:750}.dialog .outline-cta{width:100%;margin-top:11px}.toast{position:fixed;z-index:50;top:max(12px,env(safe-area-inset-top));left:50%;transform:translate(-50%,-20px);border-radius:15px;background:#081b58;color:white;padding:13px 20px;max-width:min(90vw,420px);width:max-content;font-size:13px;font-weight:1000;border:2px solid #6ce5ff;box-shadow:0 10px 26px #04143baf;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:500px){.hero-art{aspect-ratio:941/996}.home-actions{max-width:470px;margin:-14px auto 0}.home-screen{padding-bottom:40px}.game-screen{max-height:900px;min-height:800px;margin:0 auto}.wardrobe-top{min-height:255px}.wardrobe-seal{height:244px;width:255px}.item-grid{grid-template-columns:repeat(3,1fr)}.score-overview{grid-template-columns:repeat(4,minmax(0,1fr))}.game-center{min-height:225px}.game-seal{height:210px;width:255px}}
@media(max-width:360px){.screen{padding-left:10px;padding-right:10px}.hero-art{width:calc(100% + 20px);margin:0 -10px}.big-button{min-height:69px}.big-button strong{font-size:19px}.big-button small{font-size:11px}.level-line{gap:14px}.category-tab,.genre-tab{font-size:11px}.game-seal{width:48vw}.score-container{padding:9px 6px}.focus-cell{height:36px}.item-grid{max-height:265px}.tap-callout{font-size:16px}.tap-pad small{font-size:9px}}
@media(max-height:720px){.game-score-row{margin:5px 0}.score-overview{max-height:90px}.overview-bar{padding:4px}.game-center{min-height:130px}.game-seal{height:150px;width:165px}.focus-cell{height:33px}.tap-pad{max-height:76px}.tap-pads{justify-items:center}.countin-overlay{inset:98px 0 auto 0}}
@media(prefers-reduced-motion:reduce){.seal-idle svg,.game-seal svg,.result-seal svg{animation:none}.screen{animation:none}}

/* v1.1: 100円表示・テスト無料のスペシャルセット */
.genre-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.genre-tab{min-width:0;white-space:normal;line-height:1.25;min-height:39px;padding:9px 5px}
.premium-shop-banner{display:grid;gap:5px;text-align:center;border-radius:13px;padding:12px;margin:5px 0 12px;background:linear-gradient(110deg,#fff4c6,#ffe0f2);border:2px solid #f4b240;color:#61265c}
.premium-shop-banner b{font-size:13px}.premium-shop-banner span{font-size:12px;font-weight:800}.premium-shop-banner strong{display:block;background:#0b9a7d;color:white;border-radius:9px;padding:7px;font-size:14px}
.item-grid.premium-list{display:flex;flex-direction:column;max-height:unset;overflow:visible;gap:11px;padding:2px}
.premium-card{background:#f5f5ff;border:2px solid #bec9ef;border-radius:17px;padding:13px;color:#2c3873;box-shadow:0 3px 0 #cfdbef}
.premium-card.selected{border-color:#f3a530;background:#fffaf1}
.premium-card-top{display:flex;align-items:center;gap:10px}.premium-emoji{width:49px;height:49px;flex:0 0 49px;border-radius:15px;background:linear-gradient(140deg,#ba89fc,#ff79b6);display:grid;place-items:center;font-size:27px;border:2px solid white}
.premium-copy{min-width:0}.premium-copy strong{font-size:clamp(13px,3.5vw,17px);font-weight:1000;display:block;line-height:1.35}.premium-copy span{font-size:11px;color:#7d6ba7;font-weight:900}
.premium-price{display:flex;align-items:center;gap:10px;margin:8px 0 5px}.premium-price del{font-size:14px;color:#9990ad;font-weight:800}.premium-price b{border-radius:99px;padding:4px 10px;background:#d6ffeb;color:#077452;font-size:12px}
.premium-card p{font-size:12px;line-height:1.5;color:#47577e;font-weight:750;margin:5px 0 10px}
.premium-buttons{display:grid;grid-template-columns:1.6fr 1fr;gap:6px}.premium-buttons button{border:0;border-radius:10px;padding:11px 6px;color:white;font-size:12px;font-weight:1000}.premium-try{background:linear-gradient(120deg,#ff4f9c,#bf34cb)}.premium-parts{background:#237cc0}
.premium-detail{padding:11px 7px 5px;background:#e9f3ff;border:2px solid #9cc9ef;border-radius:15px}.premium-detail-title{font-size:12px;font-weight:1000;text-align:center;margin-bottom:10px;color:#173a82}
.premium-item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.premium-part{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;border:2px solid #b3c7ed;border-radius:10px;background:#fff;color:#153668;padding:8px 4px;min-height:124px}
.premium-part.equipped{border-color:#079c7e;background:#e3fff3}.premium-part>span{font-size:28px}.premium-part strong{font-size:12px}.premium-part small{font-size:10px;min-height:30px}.premium-part em{color:#0c9a79;font-size:11px;font-weight:1000;font-style:normal}
.credits-dialog{max-height:90dvh;overflow-y:auto}.credit-logo{font-size:29px;color:#ce238f;font-weight:1000;text-shadow:1px 2px #ffe1f4;line-height:1.3;text-align:center;margin-bottom:15px}.credit-logo span{color:#f7a421}.credit-list{display:grid;grid-template-columns:1fr 1.3fr;gap:9px;font-size:13px;line-height:1.5;margin:0 0 14px}.credit-list dt{color:#4961a1;font-weight:1000}.credit-list dd{margin:0;color:#273c76;font-weight:800}.credit-note{background:#edf3ff;padding:9px;border-radius:10px}.credit-version{text-align:center;font-size:11px!important;color:#7c84a0!important;margin:8px 0 14px!important}
@media(max-width:350px){.premium-card-top{gap:6px}.premium-emoji{width:41px;height:41px;flex-basis:41px}.premium-buttons button{font-size:11px}}
/* Prevent focus-driven horizontal scroll inside clipped app layout on mobile. */
.app-shell{overflow-x:clip;overflow-y:visible}

/* v1.4: manual START, four audible beats in measure zero (no 3-2-1) */
.zero-bar-strip{padding:11px 14px 12px;margin:10px 0 0;border-radius:17px;border:3px solid #ffda55;background:linear-gradient(115deg,#ffec7d,#ffaddd);color:#18316c;box-shadow:0 5px 0 #ad4797,0 10px 21px #071b5980;text-align:center}
.zero-bar-heading{font-size:clamp(18px,5vw,25px);font-weight:1000}
.zero-bar-heading span{display:block;font-size:12px;color:#78458b}
.beat-lamps{display:flex;justify-content:center;gap:12px;margin-top:10px}
.beat-lamps span{display:block;width:30px;height:30px;border:3px solid #1a569c;border-radius:50%;background:#ecf5ff;box-shadow:inset 0 2px 5px #345a8180,0 2px 0 #32417c;transition:background .06s, transform .06s,box-shadow .06s}
.beat-lamps span.active{background:#ff348d;transform:scale(1.25);box-shadow:0 0 16px #ff4b9b,0 0 0 4px #fff2a7}
.beat-lamps span.past{background:#53dcf4}
.start-area{padding:12px 13px 15px;border-radius:20px;margin:2px 0 13px;background:linear-gradient(125deg,#133f9c,#562aa6);border:3px solid #7de7ff;box-shadow:0 5px 0 #161d60,0 0 23px #8beaff50}
.game-start-btn{width:100%;background:linear-gradient(115deg,#ffdb3a,#ff9e23,#ff4f8b);border:4px solid white;border-radius:18px;color:#15275e;font-size:clamp(25px,7.2vw,34px);font-weight:1000;padding:14px 9px;text-shadow:0 2px #fff8ca;box-shadow:0 6px 0 #a83d76,0 0 17px #ffdd7c88;animation:start-glow .9s alternate infinite}
@keyframes start-glow{from{filter:brightness(1)}to{filter:brightness(1.15)}}
.start-explain{text-align:center;color:#fffbd5;font-size:12px;font-weight:900;margin-top:11px;line-height:1.45}
.game-screen.is-ready .tap-hitzone{opacity:.78}
.game-screen.is-ready .tap-callout{color:#aef1ff}
.game-screen.is-ready .tap-pad{pointer-events:none}
.game-screen .score-container{border-color:#44c5fa}
.game-screen .tap-hitzone{border-color:#f7e84f;box-shadow:0 0 0 3px #ffffff45 inset,0 8px 20px #03195d6e,0 0 16px #fbd65b64}
@media(max-height:740px){.start-area{padding:7px 10px}.game-start-btn{padding:8px}.zero-bar-strip{padding:5px 9px}.beat-lamps{margin-top:4px}.beat-lamps span{height:22px;width:22px}}

/* Reference artwork seal character on uncostumed / full hip-hop looks */
.reference-mascot{display:block;height:100%;width:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 6px 10px #15156b7b);user-select:none;pointer-events:none}
.game-seal .reference-mascot,.result-seal .reference-mascot,.seal-idle .reference-mascot{animation:seal-bop var(--dance-sec,.72s) ease-in-out infinite alternate;transform-origin:50% 83%}
.game-screen{background:radial-gradient(ellipse at 50% 45%,#ff4bce2c,transparent 53%),repeating-linear-gradient(114deg,transparent 0 45px,#66faff0d 47px 53px,transparent 55px 96px)}
.wardrobe-top{background:radial-gradient(ellipse at 50% 75%,#49fcff70,transparent 45%)}
@media(prefers-reduced-motion:reduce){.reference-mascot{animation:none!important}}

/* Compact mobile gameplay: the large TAP targets remain inside the viewport. */
.game-screen.active{height:100dvh;min-height:0;overflow-y:auto;padding-bottom:max(9px, env(safe-area-inset-bottom))}
.game-screen .game-score-row{margin:6px 0}
.game-screen .counter{padding:4px 7px}
.game-screen .counter b{font-size:20px}
.game-screen .score-container{padding:8px 7px 9px;flex-shrink:0}
.game-screen .score-heading{margin-bottom:5px}
.game-screen .score-overview{max-height:78px;gap:4px}
.game-screen .overview-bar{padding:4px}
.game-screen .overview-bar-label{margin-bottom:2px}
.game-screen .score-focus{margin-top:6px;padding:5px 4px 3px}
.game-screen .focus-label{padding-bottom:4px}
.game-screen .focus-cell{height:32px}
.game-screen .game-center{min-height:106px;flex:1 1 115px}
.game-screen .game-seal{height:140px;width:min(175px,44vw);margin-top:6px}
.game-screen .game-feedback{font-size:clamp(22px,6vw,31px);top:0}
.game-screen .game-bubble{font-size:9px;max-width:132px;bottom:0;padding:6px 9px}
.game-screen .tap-section{margin-top:0;flex-shrink:0}
.game-screen .tap-hitzone{padding:6px 7px 9px}
.game-screen .tap-callout{font-size:17px}
.game-screen .tap-instruction{margin:2px 0 6px;font-size:12px}
.game-screen .tap-instruction small{margin-top:1px}
.game-screen .tap-pads{gap:7px}
.game-screen .tap-pad{max-height:89px;aspect-ratio:1.1;min-height:64px}
.game-screen .game-bottom{margin-top:7px}
.game-screen.is-ready .game-center{min-height:76px;max-height:100px}
.game-screen.is-ready .game-seal{height:110px}
.game-screen .start-area{padding:7px 9px 9px;margin:2px 0 8px}
.game-screen .game-start-btn{padding:8px;font-size:clamp(23px,6vw,30px)}
.game-screen .start-explain{font-size:11px;margin-top:7px}
@media(max-height:690px){.game-screen .score-overview{max-height:42px}.game-screen .game-center{min-height:65px}.game-screen .game-seal{height:90px}.game-screen .tap-pad{max-height:73px}.game-screen .focus-cell{height:28px}.game-screen .tap-callout{font-size:15px}.game-screen .tap-instruction{font-size:11px}.game-screen .start-explain{font-size:10px}}

.version-stamp{border-radius:99px;border:1px solid #81d7ffad;background:#112f8acc;padding:5px 8px;font-size:10px;font-weight:1000;color:#fff0a0}

/* Publish verification */
.version-stamp{display:inline-flex;align-items:center;padding:6px 9px;border:1px solid #ffe879;background:#071e60;border-radius:99px;color:#fff18d;font-weight:1000;font-size:12px;letter-spacing:.1px;white-space:nowrap}


/* v1.5: stronger tap-start reliability + screens closer to provided mockups */
.game-screen,.wardrobe-screen{isolation:isolate}
.game-screen::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,#0b1d6b88,#170b5c88),url('assets/ref-game-1.png') center top/cover no-repeat;opacity:.28;mix-blend-mode:screen}
.game-screen::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:url('assets/ref-game-2.png') center top/cover no-repeat;opacity:.12;mix-blend-mode:screen}
.wardrobe-screen::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,#1d2ec8a0,#3f17a0a0),url('assets/ref-wardrobe.png') center top/cover no-repeat;opacity:.22;mix-blend-mode:screen}
.game-screen > *, .wardrobe-screen > *{position:relative;z-index:1}
.game-header{background:linear-gradient(90deg,#123e95d9,#1f6bd7c9,#0d2c8fd9);border:3px solid #58d4ff;border-radius:24px;padding:8px 10px;box-shadow:0 5px 0 #17306f}
.game-header .back-button{border-radius:18px;background:linear-gradient(#3bbfff,#0764c5);box-shadow:0 5px 0 #063b88}
.game-score-row .counter{background:linear-gradient(180deg,#0b2f85ef,#1438a5ef);border:3px solid #58d4ff;border-radius:22px;box-shadow:0 5px 0 #17306f}
.game-score-row .counter.center{background:linear-gradient(180deg,#823ed7d8,#4c43d8d8)}
.score-container.panel{background:linear-gradient(180deg,#fffefc,#eef8ff);border:4px solid #38c0ff;border-radius:28px;box-shadow:0 7px 0 #163482,0 12px 28px #04164670}
.score-heading{font-size:13px;font-weight:1000;color:#274a9b}
.focus-grid{gap:3px}
.focus-cell{border-radius:8px;background:#fffdfd}
.start-area{position:relative;z-index:8;pointer-events:auto}
.game-start-btn{position:relative;z-index:10;pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.game-feedback,.game-bubble,.game-seal{pointer-events:none}
.tap-hitzone{border-width:4px;border-radius:26px;background:linear-gradient(180deg,#7129b055,#40288f45);box-shadow:0 0 0 4px #ffe25b,0 8px 20px #03195d6e}
.tap-callout{font-size:23px;color:#fff7a2;text-shadow:0 2px #0f2470,0 0 10px #7de7ff}
.tap-instruction{font-size:17px}.tap-instruction small{font-size:13px;color:#ffffff}
.tap-pad{border-width:5px;box-shadow:0 8px 0 #142d7c,0 0 26px #aeeeff9e,inset 0 -7px #00000024}
.game-bottom>div{border-radius:16px;background:#0a297ae8;padding:10px 13px;border:2px solid #6dd9ff}
.zero-bar-strip{border-width:4px;border-radius:24px;background:linear-gradient(180deg,#fff0ab,#ffd1eb)}
.wardrobe-screen .mini-header{background:linear-gradient(90deg,#164ab0c8,#27b0f2b8,#6a30d4c8);border:3px solid #63d8ff;border-radius:26px;padding:8px 12px;box-shadow:0 5px 0 #17306f}
.wardrobe-top{min-height:270px;border-radius:26px;padding-top:8px;background:radial-gradient(ellipse at 50% 75%,#6bf5ff96,transparent 46%),linear-gradient(180deg,#ffffff0a,#ffffff00)}
.wardrobe-seal{height:235px;width:255px}
.wardrobe-talk{right:10px;top:76px;background:#ffffffea;border:3px solid #64cdfd;border-radius:16px;box-shadow:0 4px 0 #1a3d8c}
.wardrobe-controls{margin:-2px 0 12px}
.wardrobe-section{background:linear-gradient(180deg,#fbfffff7,#eef9fff5);border:4px solid #4cc5fe;border-radius:24px;box-shadow:0 7px 0 #13246f;padding:12px 10px;color:#1a3a7c}
.category-tabs{grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:10px}
.category-tab{min-height:48px;border-radius:15px;font-size:18px;font-weight:1000;background:#f4fbff;border:3px solid #9fd4ff;color:#1850a5;box-shadow:0 3px 0 #b9d3ef}
.category-tab.active{background:linear-gradient(180deg,#ffe4f0,#ffd1ef);border-color:#ef4da1;color:#b7137c}
.genre-tabs{grid-template-columns:repeat(3,1fr);display:grid;gap:8px;margin:4px 0 12px}
.genre-tab{min-height:48px;border-radius:999px;font-size:15px;font-weight:1000;border:3px solid #b9c8ef;background:#ece8ff;color:#474089}
.genre-tab.active{background:linear-gradient(100deg,#ff65ae,#ed34a0);border-color:#b61c85;color:white}
.item-grid:not(.premium-list){grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:none;overflow:visible}
.item-card{min-height:136px;padding:8px 4px;background:#ffffff;border:2px solid #b5c6ec;box-shadow:0 3px 0 #cbd8ee}
.item-card .item-emoji{font-size:40px;height:44px}
.item-name{font-size:12px}
.item-price{font-size:12px;color:#d08d00}
.item-action{font-size:11px;border-radius:12px}
.shop-hint{font-size:13px;font-weight:900;color:#2452a0}
@media(max-width:430px){.category-tab{font-size:16px}.genre-tab{font-size:13px}.item-grid:not(.premium-list){gap:8px}.item-card{min-height:128px}.wardrobe-seal{height:210px;width:225px}}
@media(max-width:360px){.item-grid:not(.premium-list){grid-template-columns:repeat(2,minmax(0,1fr))}.category-tab{font-size:14px}.genre-tab{font-size:12px}}

/* v2.0 – reference-composition remake. Real gameplay overlays precisely aligned to the approved artwork. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#screen-game.ref-game,#screen-wardrobe.ref-wardrobe{padding:0;min-height:0;height:auto;max-height:none;overflow:visible;background:none!important;display:none}
#screen-game.ref-game.active,#screen-wardrobe.ref-wardrobe.active{display:block}
.ref-stage{width:100%;aspect-ratio:864/1536;position:relative;color:#fff;overflow:hidden;isolation:isolate}
.game-artboard{background:url('assets/ref-game.png') center top / 100% 100% no-repeat}
.wardrobe-artboard{background:url('assets/ref-wardrobe.png') center top / 100% 100% no-repeat}
.ref-stage button{touch-action:manipulation}
.stage-head-game{position:absolute;top:1%;left:2%;right:3%;height:9%;z-index:6;pointer-events:none;display:flex;align-items:center;gap:1%}
.stage-pause{pointer-events:auto!important;margin-left:.6%;width:10.4%;height:76%;border:4px solid #fff;background:linear-gradient(#2ccfff,#0755bf);border-radius:28%;box-shadow:0 4px 0 #101a6d;color:#fff;font-size:clamp(18px,7vw,38px);font-weight:1000}
.game-head-label{margin-left:2%;height:75%;width:52%;padding:1.5% 2%;border:3px solid #28afff;border-radius:18px;background:linear-gradient(125deg,#092b80fa,#0b2558f0);box-shadow:0 3px 0 #08154d;display:flex;flex-direction:column;justify-content:center;text-shadow:1px 2px #071041}
.game-head-label strong{font-size:clamp(13px,3.3vw,23px);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.game-head-label span{font-size:clamp(9px,2.3vw,14px);white-space:nowrap}
.stage-bpm{margin-left:auto;text-align:center;line-height:1;border:3px solid #46d9ff;background:#081d62f5;border-radius:19px;min-width:17%;padding:2%;font-size:clamp(11px,3.5vw,21px);font-weight:1000}
.stage-bpm b{display:block;font-size:clamp(22px,6vw,39px)}
.stage-combo{position:absolute;top:9.6%;left:36.5%;width:28%;height:10%;z-index:4;display:flex;justify-content:center;align-items:center;flex-direction:column;border-radius:46%;background:radial-gradient(#e921aa 0%,#8d14aa 70%,#5e1689 100%);box-shadow:0 0 0 5px #f9d734,0 0 0 10px #d233bf,0 0 20px 13px #ec5be3aa;transform:rotate(-3deg);text-shadow:-2px -2px 0 #171b65,3px 4px 0 #171b65}
.stage-combo b{font-size:clamp(35px,12vw,78px);line-height:.94;color:#ffe84c;-webkit-text-stroke:1px #681472}
.stage-combo span{font-size:clamp(14px,4vw,26px);font-weight:1000;color:#fff04e}
.stage-bubble{position:absolute;top:11%;right:1.5%;width:27%;height:8%;display:flex;align-items:center;gap:2%;border:4px solid #112266;border-radius:50px;background:#fffffb;color:#141960;padding:3%;z-index:4;box-shadow:0 4px 0 #3155bc}
.stage-bubble span{font-size:clamp(18px,6vw,36px)}.stage-bubble strong{font-size:clamp(9px,2.8vw,15px);line-height:1.3}
.game-score-area{position:absolute;top:21.3%;left:.7%;right:.7%;height:19.6%;z-index:4;border:5px solid #0685ed;border-radius:30px;background:linear-gradient(180deg,#fff 0%,#ebfaff 100%);box-shadow:0 5px 0 #062179,0 0 22px #53f5ffb9;color:#153d85;overflow:hidden}
.ref-score-title{height:13%;display:flex;align-items:center;justify-content:flex-end;padding-right:2%;font-size:clamp(10px,3vw,17px);font-weight:1000;color:#df3286}
.ref-score-title span{color:#314e7e;margin-left:3%}
.ref-score-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:85%;padding:1.2% 1.2% 3%;gap:0;overflow:hidden}
.ref-measure{border-left:2px solid #4b82b8;min-width:0;position:relative;background:linear-gradient(#fffdfa,#e9faff);text-align:center}
.ref-measure:first-child{border-left:none}.ref-measure.current{background:linear-gradient(#fff3bd,#fff9d8)}.ref-measure.done{background:#e8f4ff}
.ref-measure h3{position:absolute;top:0;left:0;right:0;margin:0;font-size:clamp(11px,3.5vw,21px);font-weight:1000;color:#102f83;z-index:3;pointer-events:none}
.ref-measure svg{width:100%;height:100%;display:block;position:absolute;inset:4% 0 0}
.ref-measure .beat-ticks{position:absolute;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);font-size:clamp(10px,2.5vw,16px);font-weight:900;color:#5472ad}
.ref-measure .bar-marker{position:absolute;top:18%;bottom:10%;width:2%;background:#ff2c91;box-shadow:0 0 8px #ff7ecb;z-index:4;pointer-events:none}
.ref-score-line,.ref-score-nums{display:none}
.stage-feedback{position:absolute;top:41%;left:15%;right:15%;z-index:5;text-align:center;color:#fff74f;font-weight:1000;font-size:clamp(27px,10vw,69px);font-style:italic;letter-spacing:-1px;transform:rotate(-7deg);text-shadow:3px 3px 0 #521779,-3px -3px 0 #f027a3,0 7px 0 #1432a7;pointer-events:none}
.stage-feedback.flash{animation:feedback-pop .25s ease-out}
.stage-mascot{position:absolute;z-index:3;left:25%;width:53%;height:27%;top:48%;pointer-events:none;display:flex;justify-content:center;align-items:center;overflow:visible}
.stage-mascot:has(img){background:radial-gradient(ellipse at center,#04cfeeaa 12%,#bb36db94 60%,transparent 75%)}
.stage-mascot img,.stage-mascot svg{height:100%;width:100%;object-fit:contain;animation:seal-bop var(--dance-sec,.65s) ease-in-out infinite alternate;transform-origin:center 80%;filter:drop-shadow(0 4px 6px #161974)}
.stage-instruction{position:absolute;top:73.6%;left:2%;width:39%;min-height:7%;z-index:4;display:flex;align-items:center;justify-content:center;border:4px solid #163bb1;border-radius:28px;background:#ffffffec;color:#e02b91;font-size:clamp(11px,3.2vw,19px);font-weight:1000;text-align:center;transform:rotate(-4deg);padding:1.5%;text-shadow:1px 1px #ffeaff}
.stage-start-zone{position:absolute;z-index:12;top:70%;left:25%;right:11%;height:11%;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:24px;border:4px solid #ffdf53;background:linear-gradient(130deg,#172f93eb,#7d1babec);box-shadow:0 0 19px #fff27be0}
.stage-start-button{width:90%;height:69%;border:4px solid white;border-radius:19px;background:linear-gradient(#fff34e,#ff9c1e,#f23a85);color:#102478;font-size:clamp(19px,5.5vw,34px);font-weight:1000;text-shadow:1px 1px #fffbb6;box-shadow:0 5px 0 #74306b;animation:start-glow .65s infinite alternate;pointer-events:auto!important;opacity:1!important}
.stage-start-help{font-size:clamp(9px,2vw,13px);font-weight:900;text-align:center;padding-top:2%}
.zero-bar-strip{position:absolute;top:71%;left:19%;width:62%;height:10%;z-index:11;margin:0;border-radius:20px;padding:1% 2%;display:grid;align-content:center;gap:4%;background:linear-gradient(#ffed90,#ffc2de);border:4px solid #ffda55;color:#143d80}
.zero-bar-heading{font-size:clamp(13px,4vw,25px)}.beat-lamps{margin-top:0}.beat-lamps span{height:clamp(10px,4vw,27px);width:clamp(10px,4vw,27px)}.zero-bar-strip p{margin:0;font-size:clamp(10px,2.7vw,17px);font-weight:1000}
.ref-tap-pads{position:absolute;z-index:8;left:2.6%;right:2.6%;top:74.4%;height:12.2%;display:grid;grid-template-columns:repeat(4,1fr);gap:1.5%;align-items:center;pointer-events:auto}
.ref-tap-pads .tap-pad{width:100%;height:90%;max-height:none;max-width:none;aspect-ratio:1/1;border-radius:50%;display:flex;justify-content:center;align-items:center;border:5px solid #fff;font-size:clamp(26px,8vw,55px);background:radial-gradient(circle at 32% 22%,#ffffff66,transparent 55%),var(--pad);box-shadow:0 5px 0 #111d74,0 0 0 3px #98eaff,0 0 19px #fff8ce;transform-origin:center;pointer-events:auto}
.ref-tap-pads .pad-pink{--pad:#f52698}.ref-tap-pads .pad-cyan{--pad:#09b4ee}.ref-tap-pads .pad-green{--pad:#11d597}.ref-tap-pads .pad-gold{--pad:#ff9d0b}
.ref-tap-pads .tap-pad.guide{animation:tap-guide-pulse .35s infinite alternate;box-shadow:0 5px 0 #111d74,0 0 0 5px #ffe441,0 0 19px #fffbbb}
.ref-progress{position:absolute;top:88.1%;left:3%;right:3%;height:6.6%;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:2%;font-weight:1000;font-size:clamp(12px,3vw,20px);color:#fff69c}
.ref-progress>strong,.ref-progress>span{background:#0a2477e9;border:3px solid #78d8ff;border-radius:20px;padding:2.5%;white-space:nowrap}
.ref-progress i{font-style:normal}.stage-tiny-stats{position:absolute;right:2%;top:20%;z-index:4;font-size:clamp(10px,2vw,16px);font-weight:1000;background:#09266fcf;padding:1%;border-radius:12px}
.ref-game.is-ready .ref-tap-pads{opacity:.85}.ref-game.is-ready .tap-pad{pointer-events:none}
.ref-wardrobe .stage-head-wardrobe{position:absolute;z-index:5;top:0;left:0;right:0;height:11%;pointer-events:none;display:flex;align-items:flex-start;padding:3%;gap:3%}
.stage-back{pointer-events:auto!important;width:13%;height:65%;border:5px solid #fff;border-radius:30%;background:linear-gradient(#3ccaff,#0d6ed1);box-shadow:0 5px 0 #102a79;color:#fff;font-size:clamp(22px,7vw,42px);font-weight:1000}
.stage-head-wardrobe h1{padding:2% 0;margin:0;font-size:clamp(19px,6vw,39px);font-weight:1000;color:white;text-shadow:-2px -2px #142976,2px 3px #142976}
.wardrobe-medal{margin-left:auto;background:#091e62ea;border:4px solid #48dcff;border-radius:21px;padding:2%;font-size:clamp(15px,4vw,25px);font-weight:1000;white-space:nowrap}
.stage-wardrobe-mascot{position:absolute;z-index:3;top:11%;left:25%;width:50%;height:37%;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 8px 4px #0d216987);background:radial-gradient(ellipse at center,#28dbff87,#903bd797 62%,transparent 74%);border-radius:40%}
.stage-wardrobe-mascot img,.stage-wardrobe-mascot svg{max-width:100%;width:100%;height:100%;object-fit:contain;animation:seal-bop .72s infinite alternate;transform-origin:center 85%;border-radius:25%}
.ref-wardrobe .wardrobe-talk{position:absolute;z-index:3;top:30%;right:1%;max-width:26%;padding:2%;background:#fff;border:4px solid #49d0f8;border-radius:19px;color:#173c88;font-size:clamp(10px,2.5vw,15px);transform:rotate(5deg);box-shadow:0 4px 0 #122f7d}
.stage-part-selector{position:absolute;inset:0;z-index:7;pointer-events:none}
.stage-part-selector button{position:absolute;width:22%;height:11%;border:4px solid #0c3c91;border-radius:21px;background:linear-gradient(#0e3c9d 0 30%,#faffff 30% 100%);color:white;font-weight:1000;font-size:clamp(10px,2.7vw,16px);padding-top:1%;display:flex;justify-content:flex-start;align-items:center;flex-direction:column;pointer-events:auto;box-shadow:0 4px 0 #225bc0}
.stage-part-selector button::after{content:'➜';color:#1c51a1;position:absolute;right:5%;bottom:10%;font-size:clamp(14px,3.8vw,24px)}
.stage-part-selector button.active{box-shadow:0 0 0 4px #ffda43,0 4px 0 #225bc0}
.stage-part-selector button:nth-child(1){left:3%;top:12%}.stage-part-selector button:nth-child(2){right:3%;top:12%}.stage-part-selector button:nth-child(3){left:3%;top:24%}.stage-part-selector button:nth-child(4){right:3%;top:24%}.stage-part-selector button:nth-child(5){left:3%;top:36%}.stage-part-selector button:nth-child(6){right:3%;top:36%}
.stage-part-selector button .part-icon{color:#174ca0;font-size:clamp(24px,5vw,34px);line-height:1.7}
.stage-wardrobe-actions{position:absolute;z-index:7;top:48.5%;left:4%;right:4%;height:7%;display:flex;justify-content:space-between;align-items:center;gap:3%;color:white;font-size:clamp(11px,2.9vw,18px);font-weight:1000}
.stage-wardrobe-actions button{border:4px solid #39d5ff;background:#103b93;border-radius:999px;padding:2.5% 7%;color:white;font-size:clamp(11px,3vw,18px);font-weight:1000}
.stage-wardrobe-shop{position:absolute;z-index:6;top:55.1%;left:1.5%;right:1.5%;bottom:1.4%;border:5px solid #1d61b5;border-radius:24px;background:linear-gradient(#082a80,#173a9e,#0c216b);box-shadow:0 3px 0 #112365;overflow:hidden;display:flex;flex-direction:column;padding:1.7%}
.stage-genre-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1%;height:12%;flex-shrink:0}
.stage-genre-tabs button{border:3px solid #fff;color:white;font-size:clamp(9px,2.1vw,17px);font-weight:1000;border-radius:14px 14px 6px 6px;padding:1%;background:linear-gradient(#fe63a5,#ac2fbf);text-shadow:1px 1px #142577}
.stage-genre-tabs button:nth-child(1){background:linear-gradient(#ffe849,#f99d28)}.stage-genre-tabs button:nth-child(2){background:linear-gradient(#7748ef,#953dcf)}.stage-genre-tabs button:nth-child(3){background:linear-gradient(#ff61a8,#ea3489)}.stage-genre-tabs button:nth-child(4){background:linear-gradient(#2de4f8,#4a5ad6)}
.stage-genre-tabs button.active{box-shadow:0 0 0 4px #ffdc41 inset;filter:brightness(1.1)}
.stage-items{min-height:0;flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2%;padding:2%;background:#f7faff;border:4px solid #4fc7fb;border-radius:13px;align-content:start;color:#153a82}
.stage-items .item-card{min-height:0;height:auto;padding:4%;border-radius:16px;border:3px solid #c1d7f6;gap:2%;background:linear-gradient(#fff,#eaf4ff);box-shadow:0 3px 0 #b6c8e3}
.stage-items .item-card .item-emoji{font-size:clamp(26px,6vw,44px);height:auto;line-height:1.15}
.stage-items .item-name{font-size:clamp(10px,2.5vw,15px);line-height:1.25;color:#183d86}
.stage-items .item-price{font-size:clamp(10px,2.4vw,14px)}
.stage-items .item-action{border-radius:10px;padding:7%;font-size:clamp(10px,2.3vw,14px)}
.stage-items .premium-card{padding:3%;width:100%;min-width:0}
.stage-items.premium-list{display:flex;flex-direction:column;gap:4%;padding:2%}
.stage-items .premium-buttons button{font-size:clamp(10px,2.4vw,15px)}
.stage-wardrobe-shop .premium-shop-banner{margin:0;flex-shrink:0;border-radius:0;padding:1%;font-size:clamp(9px,2vw,14px);display:flex;justify-content:center;gap:2%;flex-wrap:wrap}
.stage-wardrobe-shop .premium-shop-banner strong{display:none}
.stage-wardrobe-shop .shop-hint{display:none}
@media(min-width:600px){.ref-stage{max-height:1210px;aspect-ratio:864/1536}}
@media(max-width:360px){.stage-part-selector button{border-width:2px}.game-score-area{border-width:3px}.ref-measure h3{font-size:10px}.stage-bubble{border-width:2px}}

/* v2 final corrections */
.stage-mascot.has-outfit{background:radial-gradient(ellipse at center,#18d6fb 23%,#7f2cce 80%,#183b9f 100%);border-radius:35%;box-shadow:0 0 23px #70cfff}
.stage-wardrobe-mascot.has-outfit{background:radial-gradient(ellipse at center,#16d8fc 25%,#8b39d0 83%,#1a3c95 100%);border-radius:34%}
.stage-items .item-emoji:has(img){width:100%;height:68px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.stage-items .item-ref-img{width:100%;height:100%;object-fit:cover;object-position:center 15%;border-radius:8px}
.stage-part-selector button span:first-child{color:#fff;font-size:clamp(9px,2.2vw,16px)}
.stage-items .item-card.equipped{border-color:#ffbd2e;background:#fff2ce}
.ref-wardrobe .stage-wardrobe-shop .premium-shop-banner[hidden]{display:none!important}
.ref-wardrobe .stage-wardrobe-shop .premium-shop-banner:not([hidden]){display:flex!important}
/* No legacy translucent styling should wash out the chosen reference art. */
#screen-game.ref-game::before,#screen-game.ref-game::after,#screen-wardrobe.ref-wardrobe::before,#screen-wardrobe.ref-wardrobe::after{display:none!important;content:none!important}
#screen-game.ref-game.active,#screen-wardrobe.ref-wardrobe.active{min-height:100dvh}
.ref-stage{height:100dvh;aspect-ratio:auto;background-size:100% 100%}
.game-artboard{background-size:100% 100%!important}
.stage-bpm{position:absolute;left:66%;right:auto;top:8%;min-width:15.5%;height:74%;padding:1.8%;display:grid;align-content:center}
.stage-head-game .game-head-label{width:50%}
.ref-game .stage-bubble{top:10.7%;right:1.5%}
.stage-items .item-emoji{overflow:hidden}
@media(min-width:680px){.ref-stage{height:auto;aspect-ratio:864 / 1536}}
/* Keep the original wardrobe title art and original bottom return-button composition. */
.ref-wardrobe .stage-head-wardrobe{inset:0;top:0;height:100%;padding:0;pointer-events:none}
.ref-wardrobe .stage-head-wardrobe h1{display:none}
.ref-wardrobe .wardrobe-medal{position:absolute;top:2.3%;right:2.5%;margin:0;width:34%;text-align:center;border:4px solid #2ee0ff;border-radius:24px;padding:2% 1%;font-size:clamp(15px,4vw,25px);background:#0b236bee;box-shadow:0 5px 0 #192779}
.ref-wardrobe .stage-back{position:absolute;top:92%;left:4%;width:31%;height:6.3%;border-radius:40px;background:linear-gradient(#36d0ff,#1264df);font-size:clamp(17px,4vw,28px)}
.ref-wardrobe .stage-back::after{content:' もどる';font-size:clamp(15px,3.8vw,24px)}
.ref-wardrobe .stage-wardrobe-shop{bottom:9.7%}
.ref-wardrobe .stage-wardrobe-actions{top:48.4%}
.ref-wardrobe .stage-wardrobe-mascot{top:11%;height:36%}
/* Hide the fixed PERFECT lettering in the reference illustration until the player earns a judgement. */
.ref-game .stage-feedback{top:41.1%;left:11%;right:11%;height:9.5%;display:flex;align-items:center;justify-content:center;background:linear-gradient(90deg,transparent 0%,#231f9fe6 13%,#4420a5ed 52%,#231d90e6 87%,transparent 100%);border-radius:34px;text-shadow:3px 3px 0 #521779,-3px -3px 0 #f027a3,0 7px 0 #1432a7}

/* v2.1 image-safe mobile composition and live score timing */
#screen-game.ref-game.active,#screen-wardrobe.ref-wardrobe.active{
 display:flex;align-items:center;justify-content:flex-start;flex-direction:column;
 min-height:100dvh;overflow-x:hidden;
 background:linear-gradient(180deg,#174dbe,#4d27ab 65%,#161052)!important;
}
.ref-stage{
 width:min(100%, calc(100dvh * 9 / 16));
 height:auto!important;aspect-ratio:9 / 16!important;
 max-width:100%;margin:0 auto;
 flex-shrink:0;overflow:hidden;background-size:100% 100%!important;
}
.game-artboard{background-image:url('assets/ref-game-hip.png');}
.wardrobe-artboard{background-image:url('assets/ref-wardrobe.png');}
/* Hide the static music print entirely, including the preprinted pink line.
   The score panel below contains the ONLY notes and ONLY cursor. */
.ref-game .game-score-area{
 top:19.4%;height:21.75%;left:.25%;right:.25%;z-index:6;
 border:5px solid #0a79ec;border-radius:30px;
 background:linear-gradient(#fcfeff,#e8f7ff);
}
.ref-game .ref-score-title{height:14%;font-size:clamp(9px,2.75vw,18px);padding-right:3%;}
.ref-game .ref-score-overview{height:86%;padding:1% 1% 2.3%;}
.ref-measure svg{inset:4% 0 0}
.ref-measure .beat-ticks{height:14%;bottom:0;display:block;position:absolute;left:0;right:0}
.ref-measure .beat-ticks span{position:absolute;transform:translateX(-50%);bottom:0}
.ref-measure .live-score-cursor{
 position:absolute;z-index:9;top:19%;bottom:12%;width:3px;
 background:#fc2368;box-shadow:0 0 0 1px white,0 0 9px #ff2e89;
 pointer-events:none;will-change:left;
}
.ref-measure .live-score-cursor span{
 position:absolute;left:50%;top:-16px;transform:translateX(-50%);
 color:#f21773;-webkit-text-stroke:1px white;font-size:20px;line-height:1;
 text-shadow:0 0 3px white;
}
.ref-game .stage-feedback{z-index:7}
.ref-game .stage-combo{z-index:6}
.ref-game .stage-tiny-stats{top:19%;z-index:5}
.ref-game .stage-mascot.has-outfit{
 left:22%;width:56%;top:48%;height:26%;
 background:radial-gradient(ellipse at center,#14c4f4 2%,#4c40d1 61%,#5021aa 96%);
 border-radius:45%;box-shadow:0 0 22px #72dfff75;
}
.ref-wardrobe .stage-wardrobe-mascot:not(.has-outfit){background:transparent;filter:none;}
.ref-wardrobe .stage-wardrobe-mascot.has-outfit{
 left:23%;width:54%;top:11%;height:37%;
 background:radial-gradient(ellipse at center,#21b8f9 10%,#524bd4 65%,#9126ae 97%);
 border-radius:42%;
}
.ref-wardrobe .stage-wardrobe-mascot .reference-mascot{object-fit:contain;max-height:100%;}
/* No image parts are stretched to fill a mismatched phone aspect ratio. */
@media (max-aspect-ratio:9/16){
 #screen-game.ref-game.active,#screen-wardrobe.ref-wardrobe.active{justify-content:center;}
}
@media (max-width:430px){
 .ref-game .ref-score-title{font-size:10px;}
 .ref-game .ref-measure h3{font-size:12px;}
 .ref-game .stage-tiny-stats{font-size:9px;}
 .stage-items .item-ref-img{object-fit:contain!important;object-position:center!important;}
}
/* Responsive mode selection: keep the *whole* chosen seal visible below the card. */
@media (max-height:800px) and (max-width:680px){
 #screen-mode.screen{padding:8px 11px 12px;min-height:100dvh;overflow-y:auto;}
 #screen-mode .mini-header{margin-bottom:4px;}
 #screen-mode .mode-content{gap:3px;}
 #screen-mode .mode-content .panel{padding:13px 12px;}
 #screen-mode .level-line{margin:13px 0 3px;gap:15px;}
 #screen-mode .challenge-info{margin:8px 0;padding:9px 4px;}
 #screen-mode .stage-picker .hint{margin:8px 0;}
 #screen-mode .wide-cta{padding:10px 8px;}
 #screen-mode .seal-side{min-height:0;flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:0 10px;}
 #screen-mode .seal-holder{width:min(38vw,170px);height:min(22dvh,156px);flex-shrink:0;}
 #screen-mode .bubble{margin:0;padding:7px 9px;max-width:150px;font-size:10px;}
}
.ref-game .stage-bubble{top:10.6%;right:.6%;width:31%;height:8.8%;background:#fffefa;border:4px solid #143375;border-radius:35px;padding:2%;overflow:hidden;}
.ref-game .stage-bubble span{display:none;}
.ref-game .stage-bubble strong{display:block;width:100%;font-size:clamp(10px,2.65vw,16px);line-height:1.3;text-align:center;overflow-wrap:anywhere;}
.ref-game .ref-progress{top:86.4%;height:8.3%;left:2%;right:2%;padding:0 1.2%;background:#09236ff5;border:3px solid #41c6f9;border-radius:17px;box-shadow:0 0 13px #89d9ff85;}
.ref-game .ref-progress>strong,.ref-game .ref-progress>span{border-width:1.5px;border-radius:10px;padding:1.8% 2%;}
