/* DJあざらし 4.9: fresh screens. All playable controls are real DOM elements. */
html,body{width:100%;max-width:100%;}
.v49-lang-toggle{position:fixed;z-index:1200;top:8px;right:max(8px,calc((100vw - 680px)/2 + 8px));color:#fff;background:linear-gradient(110deg,#154da9,#932ace);border:2px solid #84f5ff;border-radius:99px;padding:5px 8px;font-weight:1000;font-size:12px;box-shadow:0 2px 9px #101562;}
#screen-wardrobe .v49-lang-toggle{z-index:1200}
#screen-home .hero-hotspot span{display:none;}
.v49-english-hero{display:none;}
html[lang=en] #screen-home .hero-bitmap{display:none;}
html[lang=en] #screen-home .hero-art{background:radial-gradient(ellipse at 49% 52%,#6045e5bb,transparent 55%),repeating-linear-gradient(115deg,#21dafa2c 0 10px,transparent 12px 60px),linear-gradient(160deg,#063fae,#2626ac,#4b187b)!important;}
html[lang=en] #screen-home .v49-english-hero{position:absolute;inset:0;display:block;}
.v49-en-title{position:absolute;top:5%;left:0;right:0;text-align:center;color:#fff;font-size:clamp(31px,9vw,60px);font-weight:1000;text-shadow:3px 4px 0 #0f1e78,-2px -2px 0 #ff2c91,0 0 14px #2af6ff;line-height:1.18;}
.v49-en-title em{color:#ffe94c;font-style:normal;letter-spacing:1px;}
.v49-en-mascot{position:absolute;top:25%;left:15%;width:70%;height:33%;filter:drop-shadow(0 6px 12px #1b0d68);}
.v49-en-mascot img{height:100%;width:100%;object-fit:contain;}
html[lang=en] #screen-home .hero-hotspot{left:7%!important;width:86%!important;display:flex;align-items:center;justify-content:center;border:4px solid #fff!important;box-shadow:0 5px 0 #18246e,0 0 17px #41eeffb0!important;border-radius:40px!important;}
html[lang=en] #screen-home .hero-normal{top:63%;height:9%;background:linear-gradient(110deg,#ff499e,#d226ba)!important;}
html[lang=en] #screen-home .hero-manual{top:74%;height:9%;background:linear-gradient(110deg,#12c7ee,#0564da)!important;}
html[lang=en] #screen-home .hero-wardrobe{top:85%;height:9%;background:linear-gradient(110deg,#8446e9,#d948d4)!important;}
html[lang=en] #screen-home .hero-hotspot span{display:block;color:#fff;font-weight:1000;font-size:clamp(19px,5.5vw,33px);text-shadow:0 2px #152c84;}

/* Wardrobe: no printed costumes, controls or texts in the background. */
#screen-wardrobe.v49-wardrobe.active{padding:0!important;display:block!important;height:100dvh!important;min-height:590px!important;overflow:hidden!important;background:radial-gradient(circle at 45% 23%,#2e68e4,#241d83 58%,#160e58)!important;}
.v49-wardrobe-board{width:100%;height:100%;position:relative;isolation:isolate;overflow:hidden;background:repeating-linear-gradient(112deg,#6befff08 0 12px,transparent 12px 56px),radial-gradient(ellipse at 50% 30%,#40c9ff77,transparent 45%),linear-gradient(170deg,#1452a9,#272b9d 62%,#200963);}
.v49-wardrobe-board::before{content:'♫  ♪  ✦  ♫  ✦  ♪';position:absolute;left:-6%;right:-6%;top:10%;font-size:clamp(27px,7vw,60px);color:#d465ffa0;text-shadow:0 0 12px #fff;word-spacing:20px;text-align:center;pointer-events:none;}
#screen-wardrobe .wardrobe-v39{position:relative!important;inset:auto!important;display:grid!important;grid-template-rows:52px minmax(205px,35%) 50px 0px 0px minmax(130px,1fr) 54px!important;gap:5px!important;height:100%!important;width:100%!important;overflow:hidden!important;background:none!important;color:white!important;z-index:1!important;padding:8px 10px 11px!important;}
#screen-wardrobe .wardrobe-v39.premium-active{grid-template-rows:52px minmax(205px,33%) 47px 40px 43px minmax(110px,1fr) 54px!important;gap:5px!important;}
.v49-wardrobe-header{grid-row:1;display:flex;align-items:center;gap:10px;min-width:0;position:relative;z-index:5;padding-right:65px;}
#screen-wardrobe .v49-wardrobe-header h1{flex:1;min-width:0;text-align:center;font-size:clamp(17px,4.6vw,29px);line-height:1.08;text-shadow:2px 3px #102269;font-weight:1000;margin:0;}
#screen-wardrobe .w39-back{position:static!important;width:49px!important;height:46px!important;border:3px solid white!important;background:linear-gradient(#1bc7f5,#085cba)!important;box-shadow:0 4px 0 #083777!important;color:#fff!important;font-size:28px!important;font-weight:1000!important;flex-shrink:0;border-radius:16px!important;}
.v49-medals{display:flex;gap:4px;align-items:center;justify-content:center;border-radius:16px;border:2px solid #6feaff;background:#0b2268;padding:9px;font-size:13px;font-weight:1000;white-space:nowrap;}
#screen-wardrobe .w39-medal{position:static!important;display:inline!important;width:auto!important;height:auto!important;background:none!important;box-shadow:none!important;font-size:18px!important;}
.v49-preview{grid-row:2;position:relative;min-height:0;overflow:hidden;border-radius:24px;border:2px solid #39e0ff;box-shadow:0 0 18px #54f6ff86;background:radial-gradient(ellipse at 50% 68%,#7353f6a0,#19266d10 55%,transparent 80%),linear-gradient(170deg,#09297d94,#32239691);}
.v49-preview::before,.v49-preview::after{content:'';position:absolute;top:0;width:17%;height:92%;opacity:.35;pointer-events:none;background:repeating-linear-gradient(180deg,#2eefff 0 10px,#183f92 11px 18px,#671bab 19px 32px);border-radius:18px;filter:blur(1px)}
.v49-preview::before{left:0}.v49-preview::after{right:0}
.v49-spotlights{position:absolute;pointer-events:none;inset:0;background:conic-gradient(from 10deg at 50% 0%,transparent 0 28deg,#b653f622 31deg 46deg,transparent 60deg 120deg,#23e3fa22 125deg 151deg,transparent 160deg 360deg);}
#screen-wardrobe .w39-avatar-frame{position:absolute!important;top:0!important;left:27%!important;width:46%!important;height:100%!important;display:flex!important;align-items:center;justify-content:center;overflow:visible!important;background:none!important;box-shadow:none!important;border-radius:0!important;aspect-ratio:auto!important;pointer-events:none;}
#screen-wardrobe .w39-avatar-frame::after{content:'';display:block!important;position:absolute;bottom:3%;left:-14%;right:-14%;height:6%;border:4px solid #45dfff;border-radius:50%;background:#cc2ffc60;filter:none;box-shadow:0 0 11px #ff40e9;z-index:0;}
#screen-wardrobe .w39-avatar-inner{position:relative!important;z-index:2!important;width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;pointer-events:none;}
#screen-wardrobe .w39-avatar-inner>.seal-layer-avatar{width:100%!important;height:100%!important;transform:none!important;filter:drop-shadow(0 6px 5px #061a5888)!important;}
#screen-wardrobe .w39-slots{position:absolute!important;inset:0!important;display:grid!important;grid-template-columns:24% 52% 24%!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:0!important;pointer-events:none;z-index:3;}
#screen-wardrobe .w39-slots button{position:relative!important;top:auto!important;left:auto!important;width:100%!important;height:85%!important;max-height:73px!important;min-width:0!important;align-self:center;border:2px solid #82d9ff!important;border-radius:13px!important;pointer-events:auto!important;box-shadow:0 2px 5px #090e50;background:linear-gradient(#164b95,#0b2d74)!important;color:white!important;display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:2px;font-size:clamp(10px,2.45vw,13px)!important;font-weight:900!important;overflow:hidden;line-height:1.05!important;text-align:center;}
#screen-wardrobe .w39-slots button:nth-child(1){grid-column:1;grid-row:1;}
#screen-wardrobe .w39-slots button:nth-child(2){grid-column:3;grid-row:1;}
#screen-wardrobe .w39-slots button:nth-child(3){grid-column:1;grid-row:2;}
#screen-wardrobe .w39-slots button:nth-child(4){grid-column:3;grid-row:2;}
#screen-wardrobe .w39-slots button:nth-child(5){grid-column:1;grid-row:3;}
#screen-wardrobe .w39-slots button:nth-child(6){grid-column:3;grid-row:3;}
#screen-wardrobe .w39-slots button .v49-slot-icon{font-size:21px;line-height:1.1;}
#screen-wardrobe .w39-slots button.active{border-color:#ffe749!important;background:linear-gradient(#e345bb,#6421a8)!important;box-shadow:0 0 9px #ffe963!important;}
#screen-wardrobe .w39-tabs{position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;height:100%!important;grid-row:3;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px!important;z-index:10;}
#screen-wardrobe .w39-tabs button{background:linear-gradient(#37b7ec,#08529f)!important;border:2px solid #fff!important;font-size:clamp(9px,2.6vw,14px)!important;text-shadow:0 2px #15266a!important;color:white!important;border-radius:13px!important;white-space:normal;line-height:1.15;min-height:44px;}
#screen-wardrobe .w39-tabs button.active{background:linear-gradient(#fff45f,#ffae19)!important;color:#17326e!important;text-shadow:none!important;box-shadow:0 0 8px #ffed6e!important;border-color:#fff!important;}
#screen-wardrobe .w39-premium-sets{grid-row:4;position:relative!important;left:auto!important;right:auto!important;top:auto!important;height:100%!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:4px!important;z-index:10!important;}
#screen-wardrobe .w39-premium-sets[hidden]{display:none!important;}
#screen-wardrobe .w39-premium-sets button{background:linear-gradient(#ebfaff,#b9dcff)!important;color:#164485!important;border:2px solid #a5e3fc!important;border-radius:12px!important;font-size:clamp(9px,2.8vw,13px)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#screen-wardrobe .w39-premium-sets button.active{background:linear-gradient(#ff5fb4,#c72ed4)!important;color:white!important;border-color:#ffe84f!important;}
#screen-wardrobe .w39-premium-equip{grid-row:5;position:relative!important;top:auto!important;left:auto!important;right:auto!important;width:100%!important;height:100%!important;z-index:10!important;border-radius:14px!important;background:linear-gradient(100deg,#ffbb29,#fc3796,#9634d8)!important;color:white!important;font-size:clamp(10px,2.8vw,14px)!important;font-weight:1000!important;line-height:1.2!important;white-space:normal;}
#screen-wardrobe .w39-premium-equip[hidden]{display:none!important;}
#screen-wardrobe .w39-shop,#screen-wardrobe .wardrobe-v39.premium-active .w39-shop{grid-row:6;position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:100%!important;max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:minmax(113px,auto)!important;align-content:start!important;gap:6px!important;padding:7px!important;background:#e8f9ff!important;border:3px solid #70dafa!important;border-radius:17px!important;box-shadow:0 4px 0 #07347b!important;touch-action:pan-y!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;z-index:15!important;pointer-events:auto!important;}
#screen-wardrobe .w39-shop button,#screen-wardrobe .wardrobe-v39.premium-active .w39-shop button{min-height:113px!important;width:auto!important;padding:5px 2px!important;background:linear-gradient(180deg,#fff,#f2fbff)!important;border:2px solid #c2d9ee!important;border-radius:14px!important;color:#16447c!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;align-items:center!important;gap:2px!important;overflow:hidden!important;}
#screen-wardrobe .w39-shop button.active{background:#fff4cc!important;border-color:#e6ba33!important;}
#screen-wardrobe .w39-shop .item-icon{flex:none;height:32px!important;min-height:0!important;font-size:24px!important;display:grid!important;place-items:center!important;}
#screen-wardrobe .w39-shop .item-label{display:block!important;flex:1;font-size:clamp(9px,2.5vw,12px)!important;line-height:1.12!important;min-height:0!important;overflow-wrap:anywhere;text-align:center;font-weight:900!important;}
#screen-wardrobe .w39-shop .item-price{display:block!important;flex:none;font-size:10px!important;line-height:1.1!important;}
#screen-wardrobe .w39-shop .item-action{display:block!important;flex:none;font-size:clamp(9px,2.4vw,12px)!important;padding:7px 1px!important;line-height:1!important;color:#fff;border-radius:8px;}
#screen-wardrobe .w39-shop.static-hip button>*{display:block!important;}
#screen-wardrobe .w39-shop.static-hip button .item-icon{display:grid!important;}
#screen-wardrobe .w39-shop.static-hip button{background:linear-gradient(180deg,#fff,#f2fbff)!important;border:2px solid #c2d9ee!important;position:relative!important;}
#screen-wardrobe .w39-shop.static-hip button.active::after{display:none!important;content:none!important;}
.v49-wardrobe-footer{grid-row:7;display:flex;justify-content:space-between;align-items:center;gap:8px;}
.v49-wardrobe-note{color:#ffef85;font-size:clamp(10px,2.5vw,14px);font-weight:1000;text-shadow:0 2px #0f1d72;}
#screen-wardrobe .w39-clear{position:static!important;width:auto!important;height:43px!important;padding:0 17px!important;border:2px solid #fff!important;border-radius:30px!important;color:#fff!important;background:linear-gradient(#31b8fa,#086ac4)!important;font-size:14px!important;white-space:nowrap;}
#screen-wardrobe .w39-equipped-title{display:none!important;}

/* Game: distinct non-overlapping rows, independently tapable Demo and Start. */
#screen-game.v49-game.active{padding:0!important;height:100dvh!important;min-height:590px!important;overflow:hidden!important;display:block!important;}
#screen-game .v49-game-board{position:relative!important;isolation:isolate;display:grid!important;grid-template-rows:7% 9% 24% minmax(13%,1fr) 12% 8% 14% 8%!important;gap:0!important;width:100%!important;height:100%!important;min-height:590px!important;background:radial-gradient(ellipse at 50% 66%,#8c4fdb 0%,#21289e 50%,#08297e 100%)!important;overflow:hidden!important;}
#screen-game .v49-game-board::before{content:'';z-index:-1;position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 10% 58%,#2eefff6c,transparent 33%),radial-gradient(ellipse at 90% 58%,#e843e46c,transparent 33%),repeating-linear-gradient(117deg,transparent 0 44px,#76f1ff1c 46px 52px,transparent 60px 100px);}
#screen-game .stage-head-game{grid-row:1;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;padding:4px 8px!important;display:flex!important;align-items:center!important;gap:6px!important;z-index:6!important;}
#screen-game .stage-pause{width:48px!important;height:48px!important;flex:none!important;border-radius:15px!important;background:linear-gradient(#2cbeff,#0962c1)!important;border:3px solid white!important;}
#screen-game .game-head-label{position:relative!important;flex:1!important;width:auto!important;height:100%!important;padding:5px 8px!important;margin:0!important;min-width:0!important;border-radius:16px!important;}
#screen-game .game-head-label strong{font-size:clamp(12px,3.7vw,17px)!important;line-height:1.1!important;}
#screen-game .game-head-label span{font-size:clamp(10px,2.5vw,13px)!important;line-height:1!important;}
#screen-game .stage-bpm{position:relative!important;width:70px!important;height:100%!important;min-width:70px!important;flex:none!important;display:flex!important;align-items:center;justify-content:center;flex-direction:column;padding:3px!important;margin:0!important;border-radius:13px!important;}
#screen-game .stage-bpm b{font-size:clamp(22px,6vw,31px)!important;}
#screen-game .stage-mode-pill{display:none!important;}
#screen-game .v49-hud{grid-row:2;display:flex;align-items:center;justify-content:space-between;padding:5px 13px;gap:12px;position:relative;z-index:3;}
#screen-game .stage-lives{position:relative!important;display:flex!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;height:auto!important;align-items:center;padding:4px 7px!important;border:3px solid #9be8ff!important;border-radius:50px!important;background:#0c2369!important;font-size:clamp(27px,7vw,39px)!important;line-height:1!important;}
#screen-game .stage-lives span{line-height:1!important;}
#screen-game .stage-combo{position:relative!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;transform:none!important;width:100px!important;height:57px!important;border-radius:19px!important;box-shadow:0 0 0 3px #f9d734!important;background:linear-gradient(120deg,#e12dc9,#6920a8)!important;}
#screen-game .stage-combo b{font-size:32px!important;line-height:1!important;}
#screen-game .stage-combo span{font-size:13px!important;line-height:1!important;}
.v49-hud-reward{border:2px solid #55d6ff;border-radius:20px;background:#0c246e;padding:9px 6px;font-size:15px;font-weight:1000;white-space:nowrap;}
#screen-game .game-score-area{grid-row:3;position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;height:auto!important;margin:2px 8px!important;border:4px solid #2bd1f4!important;border-radius:20px!important;overflow:hidden;z-index:3;}
#screen-game .ref-score-title{height:17%!important;display:flex;justify-content:center;align-items:center;padding:0!important;gap:8px;font-size:clamp(11px,2.6vw,15px)!important;white-space:nowrap;color:#e7318b!important;}
#screen-game .ref-score-title .v49-muted{color:#2859a0!important;}
#screen-game .ref-score-overview{height:83%!important;padding:0 1% 2%!important;}
#screen-game .ref-measure h3{top:0!important;font-size:clamp(11px,3.1vw,17px)!important;}
#screen-game .v49-mascot-zone{grid-row:4;position:relative!important;min-height:0!important;display:flex;justify-content:center;align-items:center;overflow:hidden;z-index:2;}
#screen-game .stage-feedback{position:absolute!important;top:0!important;left:0!important;right:0!important;z-index:6!important;font-size:clamp(28px,7.5vw,47px)!important;transform:rotate(-5deg)!important;}
#screen-game .stage-mascot{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:min(36%,180px)!important;height:87%!important;max-height:195px!important;margin-top:4%!important;display:flex!important;justify-content:center;align-items:center!important;z-index:3!important;}
#screen-game .stage-mascot .seal-layer-avatar{max-height:100%!important;max-width:100%!important;}
#screen-game .game-page-hint{position:absolute!important;top:auto!important;bottom:0!important;left:4%!important;right:4%!important;width:auto!important;z-index:8!important;font-size:clamp(9px,2.6vw,12px)!important;line-height:1.25!important;padding:3px 6px!important;}
#screen-game .stage-bubble{display:none!important;}
#screen-game .v49-actions-row{grid-row:5;display:flex;align-items:center;gap:8px;padding:4px 12px;position:relative;z-index:7;}
#screen-game .game-example-btn{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:27%!important;height:71%!important;flex:none!important;padding:5px 2px!important;font-size:clamp(12px,3.2vw,16px)!important;border:3px solid white!important;border-radius:20px!important;}
#screen-game .stage-start-zone{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;flex:1!important;width:auto!important;height:90%!important;padding:3px 3px 0!important;border:3px solid #ffda50!important;border-radius:17px!important;display:flex!important;z-index:9!important;}
#screen-game .stage-start-zone[hidden]{display:none!important;}
#screen-game .stage-start-button{width:95%!important;height:68%!important;font-size:clamp(17px,5vw,26px)!important;border:3px solid white!important;border-radius:13px!important;}
#screen-game .stage-start-help{font-size:clamp(8px,2.2vw,12px)!important;line-height:1.1!important;padding:2px 0!important;text-align:center!important;}
#screen-game .zero-bar-strip{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;height:86%!important;width:auto!important;flex:1!important;padding:3px!important;}
#screen-game .zero-bar-strip[hidden]{display:none!important;}
#screen-game .v49-tap-block{grid-row:6 / span 2;display:flex;flex-direction:column;align-items:stretch;justify-content:center;position:relative;z-index:7;padding:0 10px 5px;min-height:0;}
#screen-game .stage-tap-pointer{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;text-align:center!important;flex:0 0 auto;min-height:46px;width:100%!important;display:flex;align-items:center;justify-content:center;flex-direction:column;line-height:1.04;gap:1px;font-size:clamp(17px,4.7vw,25px)!important;color:#fff657!important;text-shadow:1px 2px #113c9e,0 0 9px #ff38a5!important;animation:tapHintGlow .65s infinite alternate!important;pointer-events:none;z-index:8!important;}
#screen-game .stage-tap-pointer[hidden]{display:none!important;}
#screen-game .stage-tap-pointer .v49-down{font-size:clamp(24px,7vw,35px);letter-spacing:14px;line-height:.9;}
@keyframes tapHintGlow{0%{opacity:.45;transform:translateY(-2px)}100%{opacity:1;transform:translateY(3px)}}
#screen-game .ref-tap-pads{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;height:auto!important;flex:1!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;align-items:center!important;justify-content:center!important;}
#screen-game .ref-tap-pads .tap-pad{width:100%!important;height:auto!important;max-height:89px!important;min-height:55px!important;aspect-ratio:1/1!important;border:4px solid #fff!important;border-radius:50%!important;font-size:clamp(23px,7vw,38px)!important;}
#screen-game .v49-game-bottom{grid-row:8;display:flex;align-items:center;justify-content:space-between;gap:7px;padding:2px 9px 6px;position:relative;z-index:5;}
#screen-game .ref-progress{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;height:auto!important;margin:0!important;display:flex!important;align-items:center;flex:1;min-width:0;border:2px solid #60e3ff!important;border-radius:13px!important;padding:5px!important;background:#092673!important;}
#screen-game .ref-progress strong{width:auto!important;display:block!important;white-space:nowrap;font-size:clamp(10px,2.7vw,15px)!important;padding:2px!important;background:none!important;border:0!important;}
#screen-game .ref-progress>span{display:none!important;}
#screen-game .stage-tiny-stats{display:none!important;}
#screen-game #game-open-wardrobe{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:30%!important;height:47px!important;display:block!important;border:3px solid white!important;border-radius:14px!important;background:linear-gradient(#fcb3ea,#fc2887)!important;font-weight:1000;color:#0d2c7b;font-size:clamp(13px,3.6vw,18px)!important;box-shadow:0 3px 0 #092260!important;}
@media(max-height:700px){#screen-game .v49-game-board{grid-template-rows:7% 8% 24% minmax(12%,1fr) 13% 7% 15% 8%!important}#screen-wardrobe .wardrobe-v39{grid-template-rows:48px minmax(170px,30%) 47px 0 0 minmax(120px,1fr) 48px!important;}#screen-wardrobe .wardrobe-v39.premium-active{grid-template-rows:48px minmax(170px,29%) 47px 35px 39px minmax(105px,1fr) 48px!important;}}
/* Screen 3 – Neon concert results. Dynamic metrics and copy, no pre-baked text. */
#screen-result.active{padding:0!important;display:block!important;height:100dvh!important;overflow-y:auto!important;background:#111a61!important;}
#screen-result #result-panel{display:none!important;}
#screen-result .result-v39.v49-result{position:relative!important;inset:auto!important;min-height:100dvh!important;height:auto!important;display:flex!important;flex-direction:column!important;gap:8px!important;align-items:center!important;overflow:visible!important;padding:19px 19px 30px!important;background:radial-gradient(ellipse at 48% 35%,#8032d688,transparent 52%),repeating-linear-gradient(130deg,#ff6bfe0d 0 8px,transparent 10px 75px),linear-gradient(145deg,#102a85,#43178b 70%,#121357)!important;border:5px solid #73e7fc!important;border-radius:24px!important;box-shadow:inset 0 0 0 5px #5f2ddd,0 0 21px #00c8ff!important;color:white;}
#screen-result .result-v39.failed{background:radial-gradient(ellipse at 48% 35%,#34396e98,transparent 52%),linear-gradient(145deg,#141d53,#232247 70%,#0d163d)!important;border-color:#8c9fb5!important;}
.v49-result-tag{border:2px solid #59edfa;background:linear-gradient(110deg,#1455c0,#28368a);border-radius:35px;padding:9px 19px;text-align:center;font-size:14px;font-weight:1000;letter-spacing:1px;}
.v49-result-sparkle{font-size:clamp(23px,6vw,35px);letter-spacing:7px;text-shadow:0 0 14px #fffb5e;}
#r49-heading{margin:0;text-align:center;font-size:clamp(42px,12vw,68px);color:#ffee66;font-weight:1000;-webkit-text-stroke:1px #ef43b1;text-shadow:0 4px #4e1b9b,0 0 17px #ff5aca;}
.v49-result.failed #r49-heading{color:#bfc9df;-webkit-text-stroke:1px #47527b;text-shadow:0 3px #162252;}
#r49-subtitle{margin:0;text-align:center;font-size:clamp(21px,6vw,31px);font-weight:1000;text-shadow:0 3px #802173;}
.v49-result-avatar{width:min(56vw,270px);height:min(44vh,300px);flex-shrink:0;display:flex;justify-content:center;align-items:center;}
.v49-result-avatar .seal-layer-avatar{width:100%;height:100%;filter:drop-shadow(0 8px 9px #060d45);}
.v49-result-crowd{font-size:clamp(22px,6vw,33px);letter-spacing:7px;filter:drop-shadow(0 0 10px #ffe75f);}
#screen-result .v49-result .r39-stats{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;margin-top:3px!important;}
#screen-result .v49-result .r39-stats>div{background:#0b2a74;border:2px solid #69dffc;border-radius:12px;padding:10px 3px;text-align:center;font-size:clamp(10px,2.9vw,13px);display:flex;flex-direction:column;justify-content:center;}
#screen-result .v49-result .r39-stats span{color:#d8faff!important;}
#screen-result .v49-result .r39-stats b{color:#fff37d!important;font-size:clamp(12px,3.5vw,18px)!important;}
#screen-result .v49-result .r39-reward{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;margin:6px 0!important;border:3px solid #f5d34d!important;border-radius:15px!important;background:#fff0b6!important;color:#b67b00!important;font-weight:1000;font-size:clamp(18px,5vw,25px)!important;text-align:center;padding:14px 5px!important;}
#screen-result .v49-result.failed .r39-reward{background:#dce6f6!important;color:#7283a0!important;border-color:#bdc7e1!important;}
.v49-result-buttons{display:flex;flex-direction:column;gap:9px;width:100%;margin-top:5px;padding-bottom:20px;}
#screen-result .v49-result-buttons button{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;height:auto!important;min-height:52px!important;display:flex!important;justify-content:center;align-items:center;padding:11px!important;border-radius:17px!important;border:3px solid #fff!important;font-size:clamp(16px,4.5vw,23px)!important;font-weight:1000!important;color:white!important;line-height:1.2!important;text-align:center!important;}
#screen-result .v49-result-buttons .r39-main{background:linear-gradient(110deg,#ff658a,#ea2fa7,#ac2cdb)!important;}
#screen-result .v49-result-buttons .r39-secondary{background:linear-gradient(110deg,#35c8ff,#0978c9)!important;}
#screen-result .v49-result-buttons .r39-home{background:#0b2f77!important;}
@media(max-height:720px){.v49-result-avatar{height:170px!important;width:180px!important}.v49-result-tag{padding:6px 14px!important}}

/* Final mobile polish */
#screen-wardrobe .w39-shop,#screen-wardrobe .wardrobe-v39.premium-active .w39-shop{grid-auto-rows:minmax(155px,auto)!important;}
#screen-wardrobe .w39-shop button,#screen-wardrobe .wardrobe-v39.premium-active .w39-shop button{min-height:155px!important;}
#screen-game .stage-start-zone{justify-content:flex-start!important;}
#screen-game .stage-start-button{height:69%!important;flex-shrink:0!important;}
#screen-game .stage-start-help{min-height:20px!important;color:#fff!important;text-shadow:0 1px 2px #14165e!important;display:flex!important;align-items:center;justify-content:center;line-height:1.1!important;flex:1!important;}
#screen-game .stage-tap-pointer{color:#fff52e!important;text-shadow:0 2px 0 #0a1e72,0 0 13px #ed229c!important;}
body:has(#screen-game.active) .v49-lang-toggle{display:none!important;}
/* Avoid fixed music controls obscuring wardrobe and result actions. */
#screen-wardrobe .v49-wardrobe-note{display:none!important;}
body:has(#screen-wardrobe.active) #bgm-toggle{top:auto!important;bottom:16px!important;left:max(14px,calc((100vw - 680px)/2 + 14px))!important;right:auto!important;z-index:80!important;padding:8px 10px!important;font-size:12px!important;}
body:has(#screen-game.active) #bgm-toggle{display:none!important;}
body:has(#screen-result.active) #bgm-toggle{top:15px!important;bottom:auto!important;left:max(7px,calc((100vw - 680px)/2 + 7px))!important;right:auto!important;z-index:80!important;font-size:10px!important;padding:6px!important;}
#screen-wardrobe .w39-shop,#screen-wardrobe .wardrobe-v39.premium-active .w39-shop{grid-auto-rows:minmax(180px,auto)!important;}
#screen-wardrobe .w39-shop button,#screen-wardrobe .wardrobe-v39.premium-active .w39-shop button{min-height:180px!important;}
