:root{--pink:#ff4cac;--purple:#6b35d4;--cyan:#35dbe2;--gold:#ffd342;--ink:#32125f;--glass:rgba(69,28,139,.82)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;user-select:none}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#40158c;font-family:Arial,sans-serif;touch-action:none}
button{font:inherit;border:0;color:#fff;cursor:pointer}
#game{position:relative;width:100%;height:100%;min-width:280px;overflow:hidden;background:linear-gradient(135deg,rgba(53,22,151,.48),rgba(255,69,170,.26)),url('assets/room.webp') center 46%/cover no-repeat}
#game:after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.04),rgba(45,9,105,.24) 82%)}
#fx{position:absolute;inset:0;width:100%;height:100%;z-index:25;pointer-events:none}
.loading{position:absolute;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(150deg,#4720a9,#ff55ac 60%,#39d8df);transition:.5s}
.loading.done{opacity:0;visibility:hidden}.loading-gift{display:grid;place-items:center;width:150px;height:130px;border:7px solid #ffd94e;border-radius:28px;background:#ff5ab1;color:#fff;font-size:70px;box-shadow:0 0 70px #fff9,0 22px 35px #38116588;animation:breathe 1s infinite alternate}.loading-line{margin-top:35px;width:220px;height:16px;padding:3px;border-radius:12px;background:#40127899}.loading-line i{display:block;width:10%;height:100%;border-radius:9px;background:linear-gradient(90deg,#fff,#ffd845);animation:load 1.25s ease forwards}
@keyframes load{to{width:100%}}@keyframes breathe{to{transform:scale(1.06) rotate(2deg)}}
.topbar{position:absolute;left:0;right:0;top:0;z-index:40;height:90px;display:flex;align-items:center;justify-content:space-between;padding:14px max(18px,env(safe-area-inset-left))}
.round{width:58px;height:58px;border-radius:18px;background:linear-gradient(#ff87d0,#ac3ddd);border:3px solid #ffd7ff;box-shadow:0 6px 0 #6120a0,0 10px 20px #2b0b6d88;font-size:28px;font-weight:900}.round:active{transform:translateY(4px);box-shadow:0 2px 0 #6120a0}
.wallet{display:flex;align-items:center;border:3px solid #f4baff;border-radius:32px;background:linear-gradient(90deg,#4a188b,#8e31bb);box-shadow:0 6px 18px #30106c99;overflow:hidden}.currency{height:54px;min-width:140px;display:flex;align-items:center;gap:14px;padding:5px 20px;color:#fff;font-size:23px;border-right:2px solid #d96adb}.currency:last-child{border:0}.currency b{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-size:25px;text-shadow:0 2px 2px #713300}.coin b{background:#ffc428;border:3px solid #fff2a0;color:#fff}.star b{color:#ffd43b;font-size:40px}.currency strong{min-width:40px;text-align:center}
.screen{position:absolute;inset:0;z-index:3;display:none;padding:100px 4vw 22px}.screen.active{display:flex;animation:screenIn .32s ease both}@keyframes screenIn{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
.title-mark{position:absolute;top:92px;left:50%;transform:translateX(-50%);text-align:center;color:#fff;filter:drop-shadow(0 5px 1px #7e249c)}.title-mark span{display:block;font-weight:900;letter-spacing:5px;font-size:clamp(15px,2vw,25px)}.title-mark b{display:block;font-size:clamp(34px,5vw,67px);line-height:.9;color:#fff;text-shadow:0 0 20px #ff73c5}
#selectScreen{flex-direction:column;justify-content:center;align-items:center;padding-top:150px}
.box-stage{display:flex;align-items:flex-end;justify-content:center;gap:clamp(6px,2vw,34px);width:min(1050px,90vw);height:min(54vh,530px)}
.box-card{position:relative;width:min(29vw,310px);height:min(48vh,440px);padding:0;background:transparent;transition:.25s;filter:saturate(.82)}.box-card.selected{transform:translateY(-18px) scale(1.08);filter:saturate(1.12) drop-shadow(0 0 25px #fff)}.box-card:hover{transform:translateY(-9px)}.box-card.selected:hover{transform:translateY(-18px) scale(1.08)}
.box-sprite{display:block;background-image:none;background-repeat:no-repeat;background-size:300% 100%;background-position-y:center}.box-card .box-sprite{position:absolute;left:0;right:0;top:0;height:82%;background-size:300% 100%}.box-0{background-position-x:0%}.box-1{background-position-x:50%}.box-2{background-position-x:100%}
.price{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);min-width:120px;padding:11px 22px;border:3px solid #ffd3ff;border-radius:22px;background:linear-gradient(#d45ced,#7730c1);box-shadow:0 6px 0 #4e188d;font-size:24px;font-weight:900}.price i{font-style:normal;color:#ffd22f;margin-right:10px}
.home-actions{display:flex;align-items:center;justify-content:center;gap:clamp(18px,5vw,70px);width:100%;height:125px}.wide-btn,.primary-btn,.secondary-btn{min-width:190px;padding:15px 22px;border-radius:24px;background:linear-gradient(#e85ae7,#8e35ce);border:3px solid #ffd5ff;box-shadow:0 7px 0 #572199,0 10px 20px #250b6299;font-size:22px;font-weight:800}.wide-btn span,.primary-btn span,.secondary-btn span{font-size:28px;margin-right:10px}.wide-btn em,.primary-btn em,.secondary-btn em{font-style:normal}.heart-btn{width:100px;height:92px;border-radius:50% 50% 45% 45%;background:linear-gradient(#ff76c8,#e91c8f);border:5px solid #ffd44f;box-shadow:0 8px 0 #7a196e,0 0 28px #fff;font-size:58px;line-height:1}.heart-btn:active,.wide-btn:active,.primary-btn:active,.secondary-btn:active{transform:translateY(5px)}
.back-btn{position:absolute;left:24px;top:104px;z-index:20;width:58px;height:58px;border-radius:20px;background:linear-gradient(#ff84d1,#9b39d3);border:3px solid #ffd5ff;font-size:50px;line-height:45px;box-shadow:0 6px 0 #572198}
#unboxScreen{align-items:center;justify-content:center}.unbox-wrap{position:relative;width:min(700px,80vw);height:min(690px,76vh);display:flex;align-items:center;justify-content:center}.giant-box{width:min(650px,78vw);height:min(500px,63vh);background-size:300% 100%;transition:.3s;filter:drop-shadow(0 25px 35px #321064aa)}.giant-box.tap1{transform:rotate(-3deg) scale(1.03)}.giant-box.tap2{transform:rotate(3deg) scale(1.08)}.giant-box.open{animation:boxOpen .75s ease both}@keyframes boxOpen{35%{transform:scale(.92) rotate(-4deg)}65%{transform:scale(1.2) rotate(3deg);filter:brightness(1.8) drop-shadow(0 0 80px #fff)}100%{transform:scale(.2);opacity:0}}
.tap-hand{position:absolute;right:8%;bottom:21%;font-size:70px;filter:drop-shadow(0 5px 3px #54216a);animation:tap 1s infinite}@keyframes tap{50%{transform:translate(-10px,-18px) scale(.92)}}
.tap-progress{position:absolute;bottom:3%;left:50%;transform:translateX(-50%);display:flex;gap:18px}.tap-progress i{width:24px;height:24px;border-radius:50%;border:3px solid #fff;background:#712db4}.tap-progress i.on{background:#ffd63c;box-shadow:0 0 18px #fff}
#revealScreen{align-items:center;justify-content:center;gap:4vw}.reward-burst{position:absolute;left:50%;top:50%;width:min(65vw,800px);aspect-ratio:1;transform:translate(-50%,-50%);background:repeating-conic-gradient(from 0deg,transparent 0 8deg,#fff4 8deg 10deg);border-radius:50%;animation:spin 18s linear infinite}@keyframes spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
.girl-sprite{background-image:url('assets/girls.webp');background-size:400% 300%;background-repeat:no-repeat}.girl-0{background-position:0% 0%}.girl-1{background-position:33.333% 0%}.girl-2{background-position:66.666% 0%}.girl-3{background-position:100% 0%}.girl-4{background-position:0% 50%}.girl-5{background-position:33.333% 50%}.girl-6{background-position:66.666% 50%}.girl-7{background-position:100% 50%}.girl-8{background-position:0% 100%}.girl-9{background-position:33.333% 100%}.girl-10{background-position:66.666% 100%}.girl-11{background-position:100% 100%}
.reveal-girl{position:relative;z-index:2;width:min(35vw,360px);height:min(68vh,650px);filter:drop-shadow(0 15px 20px #4a146899);animation:reveal .7s cubic-bezier(.2,1.4,.5,1) both}@keyframes reveal{from{opacity:0;transform:scale(.2) rotate(-12deg)}to{opacity:1;transform:scale(1)}}
.reward-panel{position:relative;z-index:3;width:min(320px,28vw);padding:25px;border:4px solid #ffcaff;border-radius:34px;background:linear-gradient(#7833cce8,#42148fe8);box-shadow:0 10px 30px #2e0e6b99;text-align:center}.reward-stars{font-size:44px;color:#ffd43a}.reward-stars b{display:block;color:#fff;font-size:30px}.reward-sticker{width:100%;aspect-ratio:1;margin:10px auto;filter:drop-shadow(0 8px 10px #2b0b6b)}.sticker-progress{display:flex;justify-content:center;align-items:center;gap:8px}.sticker-progress i{width:18px;height:18px;border-radius:50%;border:2px solid #fff;background:#52208d}.sticker-progress i.on{background:#ffd63b}.sticker-progress small{margin-left:8px;font-size:18px;color:#fff}.continue-btn{position:absolute;z-index:8;left:50%;bottom:24px;transform:translateX(-50%);width:88px;height:88px;border-radius:50%;background:linear-gradient(#a9ef3d,#42a619);border:5px solid #fff6b5;box-shadow:0 7px 0 #24740b,0 0 24px #fff;font-size:58px;font-weight:900}
#galleryScreen{display:none;grid-template-columns:minmax(0,2fr) minmax(250px,1fr);gap:28px;padding-top:135px}.screen.active#galleryScreen{display:grid}.section-title{position:absolute;top:102px;left:50%;transform:translateX(-50%);color:#fff;font-size:30px;font-weight:900;text-shadow:0 4px #762091}.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;overflow:auto;padding:8px 12px 22px}.girl-card{position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:190px;padding:8px;border-radius:24px;border:4px solid #d98cff;background:linear-gradient(145deg,#7d36c8e8,#3a1777e8);box-shadow:0 7px 15px #2a0c6588;overflow:hidden}.girl-card.selected{border-color:#ffd83f;box-shadow:0 0 28px #fff}.girl-card .girl-sprite{position:relative;z-index:1;align-self:flex-end;height:92%;width:auto;max-width:88%;aspect-ratio:1/2;flex:0 0 auto;background-size:400% 300%;background-repeat:no-repeat}.girl-card.locked:after{content:"🔒";position:absolute;inset:0;display:grid;place-items:center;background:#321060aa;font-size:45px}.rarity{position:absolute;top:5px;right:7px;color:#ffd83d;font-size:28px;text-shadow:0 2px #8d4500;z-index:2}.gallery-side{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}.gallery-girl{width:min(270px,24vw);height:min(500px,58vh);filter:drop-shadow(0 15px 17px #481270)}.primary-btn,.secondary-btn{width:min(280px,90%)}.secondary-btn{background:linear-gradient(#4edfe1,#4a79d5)}
#dressScreen{align-items:stretch;justify-content:center;gap:3vw;padding-top:120px}.dress-stage{position:relative;flex:1;display:flex;align-items:center;justify-content:center}.dress-girl{width:min(370px,38vw);height:min(680px,72vh);filter:drop-shadow(0 15px 18px #4a1468)}.dress-panel{width:min(520px,45vw);align-self:center;padding:18px;border:4px solid #ffcaff;border-radius:35px;background:linear-gradient(#7934cee8,#3b137fe8);box-shadow:0 12px 28px #2e0d6c99}.category-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}.category-tabs button{height:65px;border-radius:18px;background:#a644d2;border:3px solid #df9af4;font-size:30px}.category-tabs button.active{background:#ff54b4;border-color:#ffd93a;transform:translateY(-4px)}.sticker-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.sticker-card{position:relative;aspect-ratio:1;border-radius:22px;border:3px solid #d38af1;background:#48208c;overflow:hidden}.sticker-card.equipped{border-color:#72f05b;box-shadow:0 0 18px #fff}.sticker-card.locked:after{content:"★";position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#ff4daf;color:#fff;border:2px solid #fff;font-size:20px}.equipped-accessory{position:absolute;right:12%;top:25%;width:140px;height:140px;filter:drop-shadow(0 8px 12px #431166);opacity:0;transition:.2s}.equipped-accessory.show{opacity:1;animation:pop .35s}@keyframes pop{50%{transform:scale(1.2)}}
.modal{position:absolute;inset:0;z-index:80;display:grid;place-items:center;background:#210843aa;backdrop-filter:blur(7px)}.modal.hidden{display:none}.modal-card{position:relative;width:min(500px,88vw);max-height:75vh;overflow:auto;padding:35px;border:5px solid #ffd4ff;border-radius:35px;background:linear-gradient(#7131c9,#32106f);color:#fff;text-align:center;box-shadow:0 20px 50px #190333}.modal-card>button{position:absolute;right:12px;top:10px;width:42px;height:42px;border-radius:14px;background:#ff4da8;font-size:30px}.modal-card h2{margin:10px 0 25px}.leader-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 16px;margin:7px 0;border-radius:14px;background:#ffffff19}.leader-row.me{background:#ffcf3d;color:#4a176d;font-weight:900}.leader-place{font-size:22px;line-height:1}.leader-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-weight:700}.ad-choice{display:flex;gap:15px;justify-content:center;margin-top:22px}.ad-choice button{padding:14px 22px;border-radius:18px;background:#ff4cab;font-weight:800}.toast{position:absolute;z-index:90;left:50%;bottom:30px;transform:translate(-50%,30px);padding:14px 24px;border-radius:20px;background:#2e0e6ee8;color:#fff;font-weight:800;opacity:0;transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-aspect-ratio:4/5){.topbar{height:76px;padding:10px 12px}.round{width:48px;height:48px;border-radius:15px;font-size:23px}.wallet{border-width:2px}.currency{height:46px;min-width:103px;padding:3px 10px;gap:8px;font-size:18px}.currency b{width:33px;height:33px;font-size:20px}.star b{font-size:32px}.screen{padding:83px 14px 16px}.title-mark{top:76px}.title-mark span{font-size:12px}.title-mark b{font-size:32px}.box-stage{position:relative;height:69vh;width:100%;align-items:center}.box-card{position:absolute;width:57vw;height:40vh}.box-card[data-box="0"]{left:50%;bottom:0;transform:translateX(-50%);z-index:3}.box-card[data-box="1"]{left:-3%;top:4%;z-index:1}.box-card[data-box="2"]{right:-3%;top:4%;z-index:1}.box-card.selected{z-index:5!important;filter:saturate(1.1) drop-shadow(0 0 20px #fff)}.box-card[data-box="0"].selected{transform:translateX(-50%) translateY(-8px) scale(1.04)}.box-card[data-box="1"].selected,.box-card[data-box="2"].selected{transform:translateY(-8px) scale(1.04)}.box-card .box-sprite{height:80%}.price{font-size:18px;min-width:90px;padding:8px 15px}.home-actions{height:100px;gap:22px}.wide-btn{min-width:58px;width:62px;height:62px;padding:4px;border-radius:18px}.wide-btn span{font-size:27px;margin:0}.wide-btn em{display:none}.heart-btn{width:84px;height:76px;font-size:48px}.back-btn{left:12px;top:83px;width:48px;height:48px}.unbox-wrap{width:100%;height:78vh}.giant-box{width:92vw;height:55vh}.tap-hand{right:4%;bottom:22%}.tap-progress{bottom:5%}#revealScreen{flex-direction:column;gap:0;padding-top:95px;padding-bottom:100px}.reveal-girl{width:min(65vw,340px);height:min(54vh,520px)}.reward-panel{position:absolute;right:8px;bottom:108px;width:36vw;padding:9px;border-radius:22px}.reward-stars{font-size:27px}.reward-stars b{font-size:20px}.reward-sticker{margin:2px auto}.continue-btn{bottom:17px;width:78px;height:78px}.screen.active#galleryScreen{display:flex;flex-direction:column;padding-top:118px}.section-title{top:84px;font-size:25px}.gallery-grid{height:33vh;width:100%;grid-template-columns:repeat(4,42vw);grid-auto-flow:column;grid-template-rows:1fr;overflow-x:auto;overflow-y:hidden}.girl-card{min-height:0}.gallery-side{flex:1;gap:8px}.gallery-girl{width:53vw;height:42vh}.gallery-side .primary-btn,.gallery-side .secondary-btn{width:46%;min-width:120px;padding:9px 10px;font-size:15px}.gallery-side{flex-direction:row;flex-wrap:wrap}.gallery-side .gallery-girl{flex-basis:100%}#dressScreen{flex-direction:column;gap:0;padding-top:91px}.dress-stage{height:48vh;flex:none}.dress-girl{width:58vw;height:46vh}.dress-panel{width:100%;height:41vh;padding:10px;border-radius:24px}.category-tabs button{height:48px;font-size:23px}.sticker-grid{grid-template-columns:repeat(4,1fr)}.sticker-card:nth-child(n+5){display:none}.equipped-accessory{width:90px;height:90px;right:12%;top:20%}}
@media(min-aspect-ratio:19/9){.box-stage{height:58vh}.box-card{height:50vh}.screen{padding-left:10vw;padding-right:10vw}}

/* Final text-free glossy UI and proportional sprites */
.title-mark span{font-size:30px;color:#ffd83d}.title-mark b{font-size:58px;color:#ff63b8}
.wide-btn,.primary-btn,.secondary-btn,.photo-btn,.resume-btn,.reward-video{position:relative;display:grid;place-items:center;min-width:0;width:76px;height:68px;padding:0;border:4px solid #ffd8f5;border-radius:23px;background:linear-gradient(155deg,#ff9bd8 0%,#ff4cab 43%,#b42fc7 100%);box-shadow:inset 0 5px 5px #fff9,inset 0 -7px 8px #761d9388,0 7px 0 #702090,0 11px 20px #2e0b6877;font-size:34px;text-shadow:0 3px 2px #6d1b79}.wide-btn:before,.primary-btn:before,.secondary-btn:before,.photo-btn:before,.resume-btn:before,.reward-video:before{content:"";position:absolute;left:10%;right:10%;top:7%;height:26%;border-radius:50%;background:linear-gradient(#fff9,#fff0);pointer-events:none}.wide-btn span,.primary-btn span,.secondary-btn span{font-size:34px;margin:0}.secondary-btn{background:linear-gradient(155deg,#8ef8ff,#42dce5 43%,#557ce2)}
.box-card .box-sprite{left:50%;right:auto;top:0;height:82%;width:auto;aspect-ratio:2017/2340;transform:translateX(-50%);background-size:300% 100%}
.giant-box{height:min(63vh,500px);width:auto;aspect-ratio:2017/2340;transform:scale(var(--tap-scale,1)) rotate(var(--tap-rotate,0deg));transform-origin:center 65%;transition:transform .18s ease,filter .2s}.giant-box.clicked{animation:boxClick .22s ease}.giant-box.open{animation:boxOpen .78s ease both!important}@keyframes boxClick{50%{filter:brightness(1.3) drop-shadow(0 0 28px #fff)}}
.girl-sprite{aspect-ratio:1/2;background-size:400% 300%;background-repeat:no-repeat}
.reveal-girl{height:min(68vh,650px);width:auto}.gallery-girl{height:min(56vh,500px);width:auto}.dress-girl{height:min(72vh,680px);width:auto}.girl-card .girl-sprite{display:block;align-self:flex-end;height:100%;width:auto;max-width:100%;max-height:100%;margin:auto auto 0}
.tap-progress{gap:7px;max-width:90%;flex-wrap:wrap;justify-content:center}.tap-progress i{width:17px;height:17px}
.accessory-sprite{background-image:none;background-size:400% 400%;background-repeat:no-repeat}.accessory-0{background-position:0 0}.accessory-1{background-position:33.333% 0}.accessory-2{background-position:66.666% 0}.accessory-3{background-position:100% 0}.accessory-4{background-position:0 33.333%}.accessory-5{background-position:33.333% 33.333%}.accessory-6{background-position:66.666% 33.333%}.accessory-7{background-position:100% 33.333%}.accessory-8{background-position:0 66.666%}.accessory-9{background-position:33.333% 66.666%}.accessory-10{background-position:66.666% 66.666%}.accessory-11{background-position:100% 66.666%}.accessory-12{background-position:0 100%}.accessory-13{background-position:33.333% 100%}.accessory-14{background-position:66.666% 100%}.accessory-15{background-position:100% 100%}
.reward-sticker{width:100%;aspect-ratio:1}.sticker-card{display:grid;place-items:center;padding:6%;overflow:hidden}.sticker-card .accessory-sprite{width:88%;height:88%}.buy-mark{position:absolute;left:50%;bottom:5px;transform:translateX(-50%);min-width:64px;padding:5px 9px;border:2px solid #fff;border-radius:14px;background:linear-gradient(#ff74c3,#b42fc7);box-shadow:inset 0 3px #fff7,0 3px 0 #5e1a87;color:#fff;font-size:17px;font-weight:900;white-space:nowrap}.video-mark{font-size:23px;background:linear-gradient(#70ebf1,#4e79df)}
.equipped-layers{position:absolute;inset:0;z-index:9;pointer-events:none}.equipped-accessory{position:absolute;display:block;opacity:1!important;right:auto;transform:translate(-50%,-50%);background-size:400% 400%;filter:drop-shadow(0 7px 9px #44116488);pointer-events:auto;touch-action:none;cursor:grab}.accessory-category-0{width:clamp(115px,14vw,175px);height:clamp(115px,14vw,175px)}.accessory-category-1{width:clamp(105px,13vw,160px);height:clamp(105px,13vw,160px)}.accessory-category-2{width:clamp(100px,12vw,150px);height:clamp(100px,12vw,150px)}.accessory-category-3{width:clamp(115px,14vw,170px);height:clamp(115px,14vw,170px)}.equipped-accessory:active{cursor:grabbing;filter:brightness(1.15) drop-shadow(0 0 15px #fff)}
.photo-btn{width:86px;height:66px;margin:16px auto 0;font-size:34px}.camera-flash{position:absolute;inset:0;z-index:120;background:#fff;opacity:0;pointer-events:none}.camera-flash.shoot{animation:cameraFlash .62s ease-out}@keyframes cameraFlash{0%,100%{opacity:0}15%{opacity:1}36%{opacity:.15}}
.reward-dialog{display:flex;flex-direction:column;align-items:center;gap:14px;padding:15px}.reward-dialog b{font-size:42px;color:#fff}.reward-coin{display:grid;place-items:center;width:92px;height:92px;border:6px solid #fff2a0;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff7a9,#ffc329 52%,#e38900);box-shadow:inset 0 6px #fff8,0 8px 0 #934f08,0 0 28px #fff;font-size:58px;color:#fff}.reward-video,.resume-btn{width:94px;height:76px}.leader-icon{font-size:70px;margin-bottom:15px}
.modal-card{border-color:#ffd6f5;background:linear-gradient(155deg,#b74cdb,#6d2ab9 55%,#391175);box-shadow:inset 0 8px 12px #fff4,0 20px 50px #190333}.modal-card>button{background:linear-gradient(#ff91d0,#d82b9b);box-shadow:inset 0 4px #fff7,0 4px 0 #7d1768}
@media(max-aspect-ratio:4/5){.title-mark span{font-size:20px}.title-mark b{font-size:38px}.box-card .box-sprite{height:78%}.giant-box{width:min(85vw,500px);height:auto}.reveal-girl{height:min(54vh,520px);width:auto}.gallery-girl{height:41vh;width:auto}.dress-girl{height:46vh;width:auto}.photo-btn{position:absolute;right:13px;bottom:11px;margin:0;width:62px;height:54px;font-size:27px}.dress-panel{position:relative}.equipped-accessory{width:92px;height:92px}.tap-progress{width:210px}}

/* Unified glossy navigation */
.topbar{display:grid;grid-template-columns:1fr auto 1fr;gap:16px}.top-controls{display:flex;align-items:center;gap:10px}.left-controls{justify-self:start}.right-controls{justify-self:end}.round{position:relative;background:linear-gradient(155deg,#ffa4dc,#ff4faf 48%,#b72dc6);border-color:#ffe0f7;box-shadow:inset 0 6px 6px #fff9,inset 0 -7px 8px #72188788,0 7px 0 #6b1b91,0 11px 19px #27085f88;text-shadow:0 3px 2px #731575}.round:before,.wallet-plus:before,.heart-btn:before{content:"";position:absolute;left:12%;right:12%;top:7%;height:27%;border-radius:50%;background:linear-gradient(#fff9,#fff0);pointer-events:none}.round:disabled{opacity:.38;filter:saturate(.45);cursor:default}.nav-btn{font-size:44px;line-height:1}.wallet{position:relative;overflow:visible;border:4px solid #ffd5f4;background:linear-gradient(155deg,#c94edb,#7128ae);box-shadow:inset 0 6px 7px #fff5,inset 0 -7px 8px #35106699,0 7px 0 #511281,0 11px 22px #24075f99}.currency{background:linear-gradient(180deg,#ffffff18,#2e0a621c)}.wallet-plus{position:absolute;right:-18px;top:50%;transform:translateY(-50%);width:42px;height:42px;border:3px solid #fff0ac;border-radius:50%;background:linear-gradient(155deg,#ff9bd8,#ff4bac 55%,#a924be);box-shadow:inset 0 4px 4px #fff8,0 4px 0 #69147e,0 7px 12px #24065f88;font-size:30px;font-weight:900;line-height:30px}.wallet-plus:active{transform:translateY(-43%)}
.heart-btn{position:relative;width:122px;height:108px;border-radius:48% 48% 44% 44%;background:linear-gradient(155deg,#ff9ed9,#ff45a6 48%,#c81d91);border:6px solid #ffe48a;box-shadow:inset 0 9px 8px #fff9,inset 0 -9px 10px #9f176e99,0 10px 0 #7d175f,0 0 34px #fff;font-size:70px;animation:heartCall 1.35s ease-in-out infinite}.heart-btn:active{animation:none;transform:translateY(7px) scale(.96)}@keyframes heartCall{50%{transform:scale(1.08);filter:brightness(1.1);box-shadow:inset 0 9px 8px #fff9,inset 0 -9px 10px #9f176e99,0 10px 0 #7d175f,0 0 48px #fff}}
.box-card.reselected{animation:reselectBox .34s ease}@keyframes reselectBox{50%{filter:brightness(1.35) drop-shadow(0 0 34px #fff)}}
.gallery-girl-btn{position:relative;display:grid;place-items:center;padding:0;background:transparent;overflow:visible}.gallery-girl-btn span{position:absolute;right:3%;bottom:5%;display:grid;place-items:center;width:58px;height:52px;border:3px solid #ffe6a4;border-radius:18px;background:linear-gradient(155deg,#ff9cd7,#ff46a9,#a72ac4);box-shadow:inset 0 4px #fff8,0 5px 0 #6a1889;font-size:32px}.gallery-girl-btn:hover .gallery-girl{filter:brightness(1.08) drop-shadow(0 0 22px #fff)}
.game-paused *{animation-play-state:paused!important}.cycle-check{z-index:22}#galleryScreen,#dressScreen{padding-bottom:105px}
@media(max-aspect-ratio:4/5){.topbar{grid-template-columns:1fr auto auto;gap:5px;padding:8px 7px}.top-controls{gap:4px}.round{width:37px;height:37px;border-width:2px;border-radius:12px;font-size:18px;box-shadow:inset 0 4px 4px #fff9,0 4px 0 #6b1b91}.nav-btn{font-size:30px}.wallet{border-width:2px}.currency{height:39px;min-width:68px;padding:2px 7px;gap:4px;font-size:15px}.currency b{width:28px;height:28px;font-size:17px;border-width:2px}.star b{font-size:26px}.wallet-plus{right:-10px;width:31px;height:31px;border-width:2px;font-size:22px}.right-controls{margin-left:7px}.heart-btn{width:98px;height:86px;font-size:56px}.gallery-girl-btn{width:100%;flex-basis:100%}.gallery-girl-btn .gallery-girl{height:39vh}.gallery-girl-btn span{right:21%;bottom:2%;width:48px;height:44px;font-size:27px}}
@media(max-aspect-ratio:4/5){.accessory-category-0{width:120px;height:120px}.accessory-category-1{width:110px;height:110px}.accessory-category-2{width:100px;height:100px}.accessory-category-3{width:115px;height:115px}.cycle-check{width:72px;height:72px;font-size:48px;bottom:12px}#galleryScreen,#dressScreen{padding-bottom:88px}.dress-panel{padding-bottom:74px}}

/* v2.4: five per-girl sticker categories, true-proportion atlas cells */
.category-tabs{grid-template-columns:repeat(5,1fr);gap:8px}
.accessory-sprite{background-image:none;background-size:400% 500%;background-repeat:no-repeat;background-color:transparent}
.sticker-card{padding:7%}.sticker-card .accessory-sprite{height:88%;width:auto;max-width:92%;aspect-ratio:5/6}
.reward-panel{padding:18px}.reward-stars,.reward-coins{display:inline-flex;align-items:center;gap:7px;margin:0 7px;color:#ffd43a}.reward-stars b,.reward-coins b{display:inline;color:#fff;font-size:25px}.reward-coins span{color:#ffd45a}.reward-sticker{width:75%;height:auto;aspect-ratio:5/6;margin:7px auto}
.equipped-accessory{height:auto!important;background-size:400% 500%;aspect-ratio:5/6}
.accessory-category-0{width:clamp(105px,13vw,165px)}.accessory-category-1{width:clamp(90px,11vw,145px)}.accessory-category-2{width:clamp(90px,11vw,145px)}.accessory-category-3{width:clamp(105px,13vw,160px)}.accessory-category-4{width:clamp(72px,8vw,105px)}
@media(max-aspect-ratio:4/5){.category-tabs button{font-size:20px}.accessory-category-0{width:105px}.accessory-category-1{width:92px}.accessory-category-2{width:90px}.accessory-category-3{width:100px}.accessory-category-4{width:68px}}

/* v2.5 moderation fix: responsive fit / no clipping / no UI overlap */
/* Keep the price badge readable: the former bottom-right star badge overlapped it. */
.sticker-card.locked:after{
  content:"🔒";
  inset:auto 6px auto auto;
  top:6px;
  width:28px;
  height:28px;
  border-radius:10px;
  font-size:14px;
  background:#7a2abbcc;
  border:2px solid #ffffffdd;
  box-shadow:0 2px 5px #2a0a6088;
}
.reward-choice-row{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}
.reward-choice{display:flex;flex-direction:column;align-items:center;gap:5px}
.reward-choice small{font-size:18px;font-weight:900;color:#fff;line-height:1}
.free-coins{background:linear-gradient(155deg,#a6f59a,#48c76a 48%,#2d9c59)}

/* Low-height desktop / resized browser windows. */
@media (min-aspect-ratio:4/5) and (max-height:560px){
  .topbar{height:70px;padding:8px 14px;gap:10px}
  .round{width:44px;height:44px;border-width:2px;border-radius:14px;font-size:21px;box-shadow:inset 0 4px 4px #fff9,0 4px 0 #6b1b91,0 7px 12px #27085f77}
  .nav-btn{font-size:34px}.top-controls{gap:6px}
  .wallet{border-width:3px}.currency{height:42px;min-width:105px;padding:3px 10px;gap:7px;font-size:18px}.currency b{width:31px;height:31px;font-size:19px}.star b{font-size:29px}
  .wallet-plus{right:-13px;width:34px;height:34px;border-width:2px;font-size:24px}
  .screen{padding-top:76px;padding-bottom:72px}
  .title-mark{top:68px}.title-mark span{font-size:18px}.title-mark b{font-size:31px}
  .continue-btn,.cycle-check{bottom:6px;width:64px;height:64px;border-width:4px;font-size:44px}

  #selectScreen{padding-top:78px;padding-bottom:66px;justify-content:space-between}
  .box-stage{height:min(50vh,225px);width:min(900px,86vw);flex:0 1 auto;gap:clamp(8px,2vw,24px)}
  .box-card{height:min(48vh,215px);width:min(25vw,215px)}
  .box-card.selected{transform:translateY(-7px) scale(1.03)}.box-card:hover{transform:translateY(-4px)}.box-card.selected:hover{transform:translateY(-7px) scale(1.03)}
  .price{min-width:92px;padding:7px 13px;border-width:2px;font-size:17px;box-shadow:0 4px 0 #4e188d}
  .home-actions{height:58px;flex:none;gap:clamp(16px,4vw,46px)}
  .wide-btn{width:58px;height:52px;border-width:3px;border-radius:18px;font-size:27px}.wide-btn span{font-size:27px}
  .heart-btn{width:72px;height:64px;border-width:4px;font-size:42px;box-shadow:inset 0 6px 6px #fff9,inset 0 -6px 7px #9f176e99,0 6px 0 #7d175f,0 0 22px #fff}

  #unboxScreen{padding-top:74px;padding-bottom:66px}
  .unbox-wrap{height:calc(100vh - 140px);max-height:300px;width:min(620px,78vw)}
  .giant-box{height:min(58vh,250px);width:auto}.tap-hand{font-size:48px;bottom:16%}.tap-progress{bottom:0;gap:5px}.tap-progress i{width:14px;height:14px;border-width:2px}

  #revealScreen{padding:74px 6vw 70px;gap:3vw}
  .reveal-girl{height:min(58vh,260px);width:auto}
  .reward-panel{width:min(245px,29vw);padding:9px;border-width:3px;border-radius:24px}
  .reward-stars,.reward-coins{margin:0 4px;font-size:24px}.reward-stars b,.reward-coins b{font-size:18px}.reward-sticker{width:50%;margin:4px auto}.sticker-progress i{width:13px;height:13px}

  #galleryScreen{padding:76px 3vw 72px;gap:12px;grid-template-columns:minmax(0,2.35fr) minmax(180px,.75fr)}
  .screen.active#galleryScreen{display:grid}.section-title{top:66px;font-size:23px}
  .gallery-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px;padding:3px 5px;overflow:hidden;min-height:0}
  .girl-card{min-height:0;border-width:3px;border-radius:17px}.girl-card.locked:after{font-size:25px}.rarity{font-size:20px}
  .gallery-side{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 48px;gap:7px;min-height:0;width:100%}
  .gallery-girl-btn{grid-column:1/3;min-height:0;width:100%;height:100%}.gallery-girl{height:min(48vh,205px);width:auto;max-height:100%}
  .gallery-side .primary-btn,.gallery-side .secondary-btn{width:100%;height:46px;min-width:0;padding:0;border-width:3px;border-radius:16px}.gallery-side .primary-btn span,.gallery-side .secondary-btn span{font-size:26px}
  .gallery-girl-btn span{width:42px;height:38px;font-size:22px}

  #dressScreen{padding:76px 4vw 72px;gap:2vw;align-items:center}
  .dress-stage{height:100%;min-height:0;flex:1}.dress-girl{height:min(60vh,260px);width:auto;max-height:100%}
  .dress-panel{width:min(560px,58vw);max-height:100%;padding:9px 10px;border-width:3px;border-radius:24px}
  .category-tabs{gap:6px;margin-bottom:7px}.category-tabs button{height:38px;border-width:2px;border-radius:13px;font-size:20px}.category-tabs button.active{transform:translateY(-2px)}
  .sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.sticker-card{border-width:2px;border-radius:15px;min-height:0}
  .buy-mark{min-width:48px;padding:3px 6px;font-size:13px;border-width:1px;border-radius:10px}.sticker-card.locked:after{top:4px;right:4px;width:22px;height:22px;font-size:11px;border-width:1px}
  .photo-btn{width:55px;height:43px;margin:6px auto 0;border-width:3px;border-radius:16px;font-size:24px}
}

/* Portrait / mobile: every gameplay control stays inside the available iframe. */
@media (max-aspect-ratio:4/5){
  .topbar{height:68px;padding:7px 7px;grid-template-columns:1fr auto auto;gap:4px}
  .round{width:36px;height:36px;border-width:2px;border-radius:11px;font-size:17px}.nav-btn{font-size:28px}.top-controls{gap:3px}
  .wallet{border-width:2px}.currency{height:38px;min-width:66px;padding:2px 6px;gap:4px;font-size:14px}.currency b{width:27px;height:27px;font-size:16px}.star b{font-size:24px}.currency strong{min-width:26px}
  .wallet-plus{right:-9px;width:29px;height:29px;border-width:2px;font-size:20px}.right-controls{margin-left:5px}
  .screen{padding:82px 10px 82px}
  .title-mark{top:69px}.title-mark span{font-size:15px}.title-mark b{font-size:26px}
  .continue-btn,.cycle-check{bottom:8px;width:68px;height:68px;border-width:4px;font-size:46px}

  #selectScreen{padding:86px 8px 80px;justify-content:space-between}
  .box-stage{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:4px;width:100%;height:auto;flex:1;min-height:0;padding-top:25px}
  .box-card,.box-card[data-box="0"],.box-card[data-box="1"],.box-card[data-box="2"]{position:relative;inset:auto;left:auto;right:auto;top:auto;bottom:auto;width:100%;height:min(35vh,225px);transform:none;z-index:1}
  .box-card .box-sprite{height:76%}
  .box-card.selected,.box-card[data-box="0"].selected,.box-card[data-box="1"].selected,.box-card[data-box="2"].selected{transform:translateY(-5px);z-index:2!important;filter:saturate(1.1) drop-shadow(0 0 15px #fff)}
  .box-card:hover,.box-card.selected:hover{transform:translateY(-5px)}
  .price{min-width:76px;padding:6px 9px;border-width:2px;border-radius:15px;font-size:15px;box-shadow:0 4px 0 #4e188d}.price i{margin-right:5px}
  .home-actions{height:66px;flex:none;gap:14px}.wide-btn{width:54px;height:50px;border-width:3px;border-radius:16px}.wide-btn span{font-size:24px}.heart-btn{width:72px;height:64px;border-width:4px;font-size:42px}

  #unboxScreen{padding:78px 8px 76px}.unbox-wrap{width:100%;height:100%}.giant-box{max-height:78%;width:auto;height:auto;aspect-ratio:2017/2340}.tap-hand{right:3%;bottom:14%;font-size:46px}.tap-progress{bottom:1%;width:min(210px,76vw);gap:5px}.tap-progress i{width:14px;height:14px;border-width:2px}

  #revealScreen{padding:78px 8px 82px;flex-direction:column;justify-content:center;gap:6px}
  .reveal-girl{height:min(40vh,240px);width:auto;flex:0 1 auto}
  .reward-panel{position:relative;right:auto;bottom:auto;width:min(230px,82vw);padding:7px 9px;border-width:3px;border-radius:20px;flex:0 0 auto}
  .reward-stars,.reward-coins{font-size:21px;margin:0 3px}.reward-stars b,.reward-coins b{font-size:17px}.reward-sticker{width:54px;margin:3px auto}.sticker-progress{gap:5px}.sticker-progress i{width:12px;height:12px}.sticker-progress small{font-size:14px;margin-left:4px}

  .screen.active#galleryScreen{display:flex;flex-direction:column;gap:6px;padding:82px 8px 82px}.section-title{top:68px;font-size:20px}
  .gallery-grid{display:grid;grid-auto-flow:column;grid-auto-columns:min(24vw,94px);grid-template-columns:none;grid-template-rows:1fr;width:100%;height:min(23vh,136px);min-height:104px;flex:0 0 auto;gap:6px;padding:2px 4px 8px;overflow-x:auto;overflow-y:hidden}
  .girl-card{min-height:0;height:100%;border-width:3px;border-radius:15px}.girl-card.locked:after{font-size:24px}.rarity{font-size:18px}
  .gallery-side{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 46px;gap:6px;flex:1;min-height:0;width:100%}
  .gallery-girl-btn{grid-column:1/3;width:100%;height:100%;min-height:0;flex-basis:auto}.gallery-girl-btn .gallery-girl{height:min(31vh,184px);width:auto;max-height:100%}.gallery-girl-btn span{right:24%;bottom:1%;width:40px;height:36px;font-size:21px}
  .gallery-side .primary-btn,.gallery-side .secondary-btn{width:100%;height:44px;min-width:0;padding:0;border-width:3px;border-radius:15px;font-size:0}.gallery-side .primary-btn span,.gallery-side .secondary-btn span{font-size:24px}

  #dressScreen{padding:80px 8px 82px;flex-direction:column;gap:6px;align-items:stretch}
  .dress-stage{height:min(34vh,200px);flex:0 0 min(34vh,200px);min-height:150px}.dress-girl{height:100%;width:auto;max-height:200px}
  .dress-panel{position:relative;width:100%;height:auto;max-height:none;padding:7px 7px 52px;border-width:3px;border-radius:20px;align-self:stretch;overflow:hidden}
  .category-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-bottom:6px}.category-tabs button{height:35px;border-width:2px;border-radius:11px;font-size:17px}.category-tabs button.active{transform:translateY(-2px)}
  .sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.sticker-card{min-height:0;border-width:2px;border-radius:13px;padding:4%}.sticker-card .accessory-sprite{height:82%;max-width:88%}
  .buy-mark{min-width:42px;padding:2px 4px;font-size:11px;border-width:1px;border-radius:9px;bottom:3px}.sticker-card.locked:after{top:3px;right:3px;width:20px;height:20px;font-size:10px;border-width:1px}
  .photo-btn{position:absolute;right:7px;bottom:6px;width:49px;height:40px;margin:0;border-width:3px;border-radius:14px;font-size:22px}
  .equipped-accessory{max-width:28vw}
}

@media (max-aspect-ratio:4/5) and (max-width:360px){
  .topbar{padding-left:4px;padding-right:4px;gap:2px}.round{width:32px;height:32px;font-size:15px}.nav-btn{font-size:25px}.top-controls{gap:2px}
  .currency{height:34px;min-width:55px;padding:1px 4px;gap:2px;font-size:12px}.currency b{width:23px;height:23px;font-size:14px}.star b{font-size:21px}.currency strong{min-width:20px}.wallet-plus{width:26px;height:26px;font-size:18px;right:-7px}.right-controls{margin-left:3px}
  .box-card,.box-card[data-box="0"],.box-card[data-box="1"],.box-card[data-box="2"]{height:min(34vh,195px)}.price{min-width:68px;padding:5px 5px;font-size:13px}
  .gallery-grid{grid-auto-columns:76px}.dress-stage{height:min(32vh,180px);flex-basis:min(32vh,180px)}
}

/* Extra-tight resized landscape windows. */
@media (min-aspect-ratio:4/5) and (max-height:390px){
  .topbar{height:60px;padding-top:5px;padding-bottom:5px}.round{width:38px;height:38px}.wallet .currency{height:36px;min-width:92px;font-size:16px}.currency b{width:27px;height:27px}.wallet-plus{width:30px;height:30px}
  .screen{padding-top:64px;padding-bottom:58px}.continue-btn,.cycle-check{width:54px;height:54px;font-size:38px;bottom:3px}
  #selectScreen{padding-top:66px;padding-bottom:54px}.box-stage{height:min(48vh,180px)}.box-card{height:min(46vh,174px)}.home-actions{height:48px}.wide-btn{width:50px;height:45px}.heart-btn{width:62px;height:54px;font-size:36px}
  #galleryScreen{padding-top:64px;padding-bottom:58px}.section-title{top:57px}.gallery-side{grid-template-rows:minmax(0,1fr) 40px}.gallery-side .primary-btn,.gallery-side .secondary-btn{height:38px}.gallery-girl{height:min(45vh,165px)}
  #dressScreen{padding-top:64px;padding-bottom:58px}.dress-panel{padding:6px 8px}.category-tabs button{height:31px;font-size:17px}.sticker-grid{gap:5px}.photo-btn{height:36px;margin-top:4px}.dress-girl{height:min(58vh,210px)}
  #revealScreen{padding-top:64px;padding-bottom:58px}.reveal-girl{height:min(56vh,210px)}.reward-panel{padding:5px}.reward-sticker{width:42%}
}

/* v2.5.1 fit refinements after multi-viewport QA */
.reward-burst{width:min(65vw,75vh,700px)}
@media (min-aspect-ratio:4/5) and (min-width:900px){
  #galleryScreen,#dressScreen{padding-bottom:118px}
  .gallery-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));min-height:0}
  .girl-card{min-height:0}
  .sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .dress-panel{max-height:calc(100vh - 238px);padding:14px}
  .category-tabs{margin-bottom:10px}.category-tabs button{height:54px}
  .photo-btn{width:72px;height:54px;margin-top:9px;font-size:29px}
}
@media (max-aspect-ratio:4/5){
  .box-stage{padding-left:8px;padding-right:8px}
  .box-card .box-sprite{left:50%;right:auto;width:92%;height:auto;aspect-ratio:2017/2340;top:4%;transform:translateX(-50%)}
}
@media (max-aspect-ratio:4/5) and (max-width:360px){
  .box-card .box-sprite{width:88%}
}
@media (min-aspect-ratio:4/5) and (min-width:900px){
  .gallery-side{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 58px;gap:10px;min-height:0;width:100%}
  .gallery-girl-btn{grid-column:1/3;width:100%;height:100%;min-height:0}.gallery-girl{height:min(44vh,320px);width:auto;max-height:100%}
  .gallery-side .primary-btn,.gallery-side .secondary-btn{width:100%;height:56px;min-width:0;padding:0}.gallery-side .primary-btn span,.gallery-side .secondary-btn span{font-size:29px}
}


/* v2.5.2 moderation polish */
.girl-card{position:relative}
.girl-card .girl-sprite{position:absolute!important;left:50%;bottom:0;transform:translateX(-50%);display:block;height:92%!important;width:auto!important;max-width:88%!important;max-height:92%!important;aspect-ratio:1/2;align-self:auto!important;margin:0!important}
.girl-card.locked .girl-sprite{filter:brightness(0) saturate(0) opacity(.35)}
.girl-card.locked:after{content:"🔒";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:rgba(50,16,96,.88);box-shadow:0 6px 18px rgba(0,0,0,.28);font-size:34px;z-index:3}
.wallet{padding-right:16px}
.currency:last-child{padding-right:50px}
.wallet-plus{right:6px;z-index:2}
@media(max-aspect-ratio:4/5){
  .wallet{padding-right:12px}
  .currency:last-child{padding-right:38px}
  .wallet-plus{right:4px}
}
@media(max-aspect-ratio:4/5) and (max-width:360px){
  .wallet{padding-right:10px}
  .currency:last-child{padding-right:34px}
  .wallet-plus{right:3px}
}
@media (min-aspect-ratio:4/5) and (max-height:390px){
  .wallet{padding-right:12px}
  .currency:last-child{padding-right:40px}
  .wallet-plus{right:4px}
}


/* v2.5.3 final layout fixes */
.box-sprite{background-repeat:no-repeat!important;background-position:center bottom!important;background-size:contain!important}
.box-0{background-image:url('assets/box-0.webp')!important}
.box-1{background-image:url('assets/box-1.webp')!important}
.box-2{background-image:url('assets/box-2.webp')!important}
.box-card{isolation:isolate}
.box-card .box-sprite{left:50%!important;right:auto!important;top:0!important;transform:translateX(-50%)!important;width:90%!important;height:80%!important;max-width:100%;max-height:100%;aspect-ratio:auto!important;background-size:contain!important;background-position:center bottom!important}
.giant-box{background-repeat:no-repeat!important;background-position:center center!important;background-size:contain!important}

.girl-card{contain:layout paint}
.girl-card .girl-sprite{position:absolute!important;left:50%!important;bottom:0!important;top:auto!important;transform:translateX(-50%)!important;width:auto!important;height:auto!important;max-width:84%!important;max-height:92%!important;aspect-ratio:auto!important;background-size:400% 300%!important;background-repeat:no-repeat!important}

.wallet{display:flex!important;align-items:center!important;overflow:visible!important;padding-right:0!important;gap:0}
.currency:last-child{padding-right:14px!important}
.wallet-plus{position:relative!important;right:auto!important;top:auto!important;transform:none!important;margin:0 8px 0 2px!important;flex:0 0 auto;z-index:2}
.wallet-plus:active{transform:translateY(2px)!important}
@media(max-aspect-ratio:4/5){
  .currency:last-child{padding-right:10px!important}
  .wallet-plus{margin:0 6px 0 2px!important}
}
@media(max-aspect-ratio:4/5) and (max-width:360px){
  .currency:last-child{padding-right:8px!important}
  .wallet-plus{margin:0 4px 0 1px!important}
}
@media (min-aspect-ratio:4/5) and (max-height:390px){
  .currency:last-child{padding-right:10px!important}
  .wallet-plus{margin:0 5px 0 2px!important}
}


/* v2.5.4 gallery card rendering fix: real PNGs, stable proportions on resize */
.girl-card{overflow:hidden!important;padding:5px!important;contain:layout paint;display:flex!important;align-items:flex-end!important;justify-content:center!important}
.girl-card-img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center bottom!important;pointer-events:none;-webkit-user-drag:none}
.girl-card.locked .girl-card-img{filter:brightness(.22) saturate(.35) opacity(.42)}
.girl-card.selected .girl-card-img{filter:none}
.girl-card .girl-sprite{display:none!important}

/* Normal desktop: cards keep a compact fashion-card proportion instead of stretching to grid row height. */
@media (min-aspect-ratio:4/5) and (min-height:561px){
  .gallery-grid{align-content:start!important;align-items:start!important;grid-auto-rows:auto!important}
  .girl-card{aspect-ratio:0.55!important;height:auto!important;min-height:0!important;align-self:start!important}
}
@media (min-aspect-ratio:4/5) and (min-width:900px) and (min-height:561px){
  .gallery-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:repeat(2,auto)!important}
}
/* Low desktop windows: fill the two rows, while the PNG inside remains undistorted. */
@media (min-aspect-ratio:4/5) and (max-height:560px){
  .gallery-grid{grid-template-rows:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
  .girl-card{height:100%!important;aspect-ratio:auto!important}
}
/* Portrait horizontal strip keeps its existing compact height. */
@media (max-aspect-ratio:4/5){
  .girl-card{height:100%!important;aspect-ratio:auto!important}
}

/* Avoid transient overflow while the moderator actively resizes the browser. */
.box-card{transition:transform .25s ease,filter .25s ease!important}


/* v2.5.4.1 tiny balance-star alignment fix */
.star b{position:relative;top:0;line-height:1;transform:translateY(-4px)}
@media(max-aspect-ratio:4/5){.star b{transform:translateY(-3px)}}
@media (max-aspect-ratio:4/5) and (max-width:360px){.star b{transform:translateY(-2px)}}
