@font-face{font-family:AtelierArabic;src:local("Segoe UI"),local("Tahoma");font-display:swap}*{box-sizing:border-box}html{background:#f7f3ed;color:#352d2e;font-family:AtelierArabic,"Segoe UI",sans-serif}body{margin:0}button,a,input{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;background:#fffaf6;border:1px solid #d9cbc3;color:inherit;border-radius:10px;padding:11px 16px;min-height:44px}button:hover{border-color:#8c485c;background:#f5e9e4}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #b96883;outline-offset:3px}a{color:inherit;text-decoration:none}button.primary,a.primary{background:#733a4f;color:#fff7f1;border-color:#733a4f;display:inline-flex;align-items:center;justify-content:center;gap:20px}button.primary:hover,a.primary:hover{background:#572b3c}[hidden]{display:none!important}.topbar{height:80px;padding:0 clamp(18px,4vw,64px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3d8ce;gap:18px;background:#fcf9f4}.back-link{display:flex;gap:10px;align-items:center;font-size:13px;color:#665b59}.back-link span{font-size:25px}.wordmark{display:flex;align-items:center;gap:10px;font-family:Georgia,AtelierArabic,serif;font-size:20px;letter-spacing:1.5px}.brand-star{color:#8a4c5e;font-size:30px}.top-actions{display:flex;align-items:center;gap:12px}.icon-button{padding:9px 13px;background:transparent;font-size:20px}.top-actions .icon-button{border:none}.language{font-size:12px;border-inline-start:1px solid #d9cbc3;padding-inline-start:14px}.balance{display:flex;align-items:center;gap:7px;background:#eee3d6;padding:10px 15px;border-radius:30px;white-space:nowrap}.balance span{font-size:22px;color:#8d683c}.balance small{font-size:10px}.atelier{max-width:1500px;margin:auto;padding:32px clamp(18px,4vw,64px) 24px;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);gap:clamp(26px,4vw,65px)}.stage-column{min-width:0;position:relative}.eyebrow{font-size:10px;letter-spacing:2.2px;color:#8d5f63;font-weight:650}.editorial{position:absolute;top:25px;inset-inline-start:28px;z-index:2;pointer-events:none}.editorial h1{font-size:clamp(23px,2.2vw,34px);font-weight:500;line-height:1.4;margin:8px 0 5px;font-family:Georgia,AtelierArabic,serif}.editorial p{margin:0;color:#7f6b64;font-size:13px}.stage{position:relative;isolation:isolate;height:660px;border-radius:170px 170px 18px 18px;background:#f0e5d9;overflow:hidden;border:1px solid #e4d5c6}.scene{position:absolute;inset:0;background:url('./studio.webp') center/cover;filter:saturate(.65);transition:filter .3s}.stage[data-scene=moonlight] .scene{filter:saturate(.5) hue-rotate(220deg) brightness(.82)}.stage[data-scene=sunset] .scene{filter:sepia(.25) saturate(1.3)}.ground-shadow{position:absolute;width:32%;height:25px;left:34%;bottom:8.5%;background:#37291c55;filter:blur(12px);border-radius:50%}#avatar{position:absolute;inset:96px 0 36px;width:100%;height:calc(100% - 132px);touch-action:pan-y;cursor:grab}#avatar:active{cursor:grabbing}.stage.face-view #avatar{inset:100px 0 40px;height:calc(100% - 140px)}.stage.face-view .ground-shadow{display:none}.view-tools{position:absolute;top:166px;inset-inline-end:15px;display:flex;flex-direction:column;gap:5px}.view-tools button{padding:8px 10px;font-size:10px;min-height:34px;background:#fffaf1cc;backdrop-filter:blur(8px);border-color:#ddcec1}.view-tools .active{background:#733a4f;color:white;border-color:#733a4f}.rotation{position:absolute;bottom:14px;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:15px}.rotation button{border:0;background:#fff9f1d9;border-radius:50%;font-size:23px;padding:0;width:42px;height:42px}.rotation small{color:#6c5750;font-size:11px}.stage-actions{display:flex;gap:10px;margin-top:14px}.stage-actions>button:not(.icon-button){flex:1;font-size:12px}.stage-actions .primary{justify-content:space-between}.preview-badge{position:absolute;bottom:70px;left:50%;transform:translateX(-50%);padding:6px 14px;background:#733a4f;color:#fff;border-radius:20px;font-size:11px}.loading{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#f2e9dded;text-align:center;padding:35px}.loading small{font-size:12px;color:#786461;max-width:280px}.loading strong{font-weight:500}.spinner{width:34px;height:34px;border:2px solid #d7bdba;border-top-color:#733a4f;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.wardrobe-heading{display:flex;justify-content:space-between;align-items:center;margin:8px 0 23px}.wardrobe-heading h2{font-size:28px;font-weight:500;margin:8px 0;font-family:Georgia,AtelierArabic,serif}.wardrobe-heading p{font-size:12px;color:#82706a;margin:0}.heading-flower{font-size:53px;color:#b99386;font-weight:200}.category-tabs{display:flex;justify-content:space-between;border-bottom:1px solid #dfd3c9;gap:5px}.category-tabs button{flex:1;border:0;border-radius:0;background:transparent;font-size:11px;padding:10px 3px 14px;position:relative;display:flex;align-items:center;flex-direction:column;gap:6px;color:#897b74}.category-tabs span{font-size:25px;font-family:Georgia,serif;height:29px}.category-tabs button[aria-selected=true]{color:#773d51}.category-tabs button[aria-selected=true]:after{content:"";height:2px;background:#773d51;position:absolute;bottom:-1px;left:15%;right:15%}.collection-filter{display:flex;align-items:center;gap:8px;padding:13px 0}.collection-filter button{min-height:30px;padding:5px 11px;border:0;background:transparent;font-size:11px;color:#83716a}.collection-filter .active{background:#eadecf;color:#5a403e;border-radius:20px}#piece-count{margin-inline-start:auto;font-size:11px;color:#8d7a70}.pieces{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:321px;overflow-y:auto;overscroll-behavior:contain;padding:3px;scrollbar-width:thin;scrollbar-color:#bda79d transparent}.piece{padding:0;min-width:0;text-align:start;position:relative;background:#fdfaf6;border:1px solid #e0d4ca;border-radius:12px;overflow:hidden}.piece[aria-pressed=true]{outline:2px solid #8b4e61;outline-offset:-2px}.piece-art{height:103px;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 30%,#fffaf3,#e9ddd3);overflow:hidden;position:relative}.piece-art img{width:100%;height:100%;object-fit:contain}.piece-art svg{height:82px;width:70px;filter:drop-shadow(0 5px 4px #5a3e2920)}.piece-check{position:absolute;top:7px;inset-inline-end:7px;width:18px;height:18px;border-radius:50%;background:#82465a;color:white;text-align:center;line-height:18px;font-size:11px}.piece-name{display:block;font-size:10px;padding:8px 8px 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.piece-price{display:block;font-size:10px;padding:0 8px 8px;color:#906c4e}.piece-price.free{color:#7c8171}.selection-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:67px;padding:12px 2px;border-bottom:1px solid #dfd3c9}.selection-bar strong{font-size:12px;font-weight:600}.selection-bar small{display:block;font-size:10px;color:#93736b;margin-top:4px}.selection-bar button{font-size:11px;padding:8px 13px;min-height:38px}.daily-card{border:1px solid #d9c8b6;border-radius:14px;padding:18px;margin-top:20px;background:#f1e8dc}.daily-top{display:flex;gap:10px;align-items:center}.daily-icon{font-size:27px;color:#aa8052}.daily-top .eyebrow{font-size:9px;letter-spacing:1.2px}.daily-top h3{font-size:16px;margin:3px 0;font-weight:500}.daily-reward{margin-inline-start:auto;font-size:9px;color:#8b643f}.daily-reward b{font-size:19px}.daily-note{font-size:11px;color:#8a7566;margin:10px 0}.daily-card ul{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:12px 0;padding:0}.daily-card li{font-size:10px;border:1px solid #dbcbbd;padding:7px 9px;border-radius:20px;background:#f8f1e8;color:#8a756a}.daily-card li.match{border-color:#a2aa88;color:#526249;background:#edf0e2}.daily-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dfd0bf;padding-top:12px}.daily-bottom>span{font-size:11px;color:#7e6659}.daily-bottom small{display:block;font-size:9px;margin-top:6px}.daily-bottom button{font-size:11px;min-height:37px;border-color:#9f7e6c;background:transparent}.reset-time{display:block;font-size:9px;color:#938175;margin-top:10px}footer{max-width:1372px;margin:0 auto;padding:18px 20px 25px;display:flex;justify-content:space-between;border-top:1px solid #e4d8cc;font-size:11px;color:#8b7870}footer span{font-size:9px;letter-spacing:2px}dialog{border:1px solid #d3bcb3;background:#fcf6ee;color:#3e2c30;border-radius:18px;padding:30px;max-width:420px;width:calc(100% - 32px);box-shadow:0 15px 80px #24131f44}dialog::backdrop{background:#32212e77;backdrop-filter:blur(5px)}dialog h2{font-size:23px;font-weight:500;margin:15px 0}dialog p{font-size:13px;line-height:1.9;color:#7f6863}.dialog-close{position:absolute;top:8px;inset-inline-end:8px;background:transparent;border:0;font-size:24px}.dialog-actions{display:flex;gap:10px;margin-top:25px}.dialog-actions>*{flex:1;font-size:12px;border-radius:9px;padding:12px}#purchase-price{font-size:25px;color:#8b603c}#toast{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:90;max-width:min(92vw,520px);width:max-content;background:#452c39;color:#fff7ee;border:1px solid #b88d91;box-shadow:0 8px 30px #2f1a2933;padding:15px 23px;border-radius:12px;font-size:13px;text-align:center}
@media(min-width:1400px){.stage{height:720px}.pieces{max-height:370px}.piece-art{height:125px}}
@media(max-width:1050px){.atelier{gap:25px;padding-inline:22px}.stage{height:650px}.pieces{grid-template-columns:repeat(3,minmax(0,1fr));max-height:298px}.piece-art{height:88px}.editorial{inset-inline-start:22px;top:30px}.wordmark{font-size:16px}.topbar{padding-inline:22px}.daily-card{padding:13px}.wardrobe-heading h2{font-size:24px}}
@media(max-width:760px){.topbar{height:65px;padding-inline:15px;gap:10px}.back-link{font-size:0}.back-link span{font-size:26px}.wordmark{font-size:13px;letter-spacing:.5px;gap:6px}.brand-star{font-size:22px}.top-actions{gap:5px}.balance{padding:7px 10px;font-size:12px}.balance small{display:none}.language{padding-inline-start:8px;font-size:10px}.top-actions .icon-button{padding:6px;min-width:30px}.atelier{display:block;padding:16px 14px}.editorial{top:18px;inset-inline-start:24px}.editorial .eyebrow{font-size:8px;letter-spacing:1px}.editorial h1{font-size:23px;margin:5px 0}.editorial p{font-size:11px}.stage{height:480px;border-radius:100px 100px 15px 15px}.stage #avatar{inset:83px 0 32px;height:calc(100% - 115px)}.view-tools{top:130px;inset-inline-end:10px}.view-tools button{font-size:9px;padding:7px;min-height:31px}.rotation{bottom:9px;gap:12px}.rotation small{font-size:10px}.rotation button{width:35px;min-height:35px;height:35px;font-size:21px}.stage-actions{margin-top:10px}.stage-actions>button:not(.icon-button){font-size:11px;padding:11px}.stage-actions .icon-button{padding:8px 12px}.wardrobe-heading{margin:27px 3px 16px}.wardrobe-heading h2{font-size:24px}.heading-flower{font-size:40px}.pieces{grid-template-columns:repeat(4,minmax(0,1fr));max-height:280px;gap:7px}.piece-art{height:84px}.piece-name,.piece-price{font-size:9px;padding-inline:5px}.piece-art svg{height:70px;width:55px}.category-tabs{position:sticky;top:0;z-index:6;background:#f7f3ed}.category-tabs button{padding-top:8px;padding-bottom:10px;font-size:10px}.daily-card{padding:16px;margin-top:15px}footer{margin-inline:14px;font-size:10px;padding-inline:2px}footer span{font-size:8px;letter-spacing:1px}.wardrobe-heading .eyebrow{font-size:8px}.selection-bar{min-height:60px}}
@media(max-width:360px){.wordmark{font-size:11px}.topbar{padding-inline:9px}.stage{height:440px}.pieces{grid-template-columns:repeat(3,minmax(0,1fr))}.stage-actions{gap:6px}.balance{padding:6px}.daily-bottom{align-items:flex-start}.daily-bottom small{max-width:140px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

@media(max-width:760px){.stage-column{position:sticky;top:var(--game-guest-height,0px);z-index:10;background:#f7f3ed;padding-bottom:8px}.stage{height:clamp(270px,43svh,370px);border-radius:80px 80px 15px 15px}.stage #avatar{inset:66px 0 30px;height:calc(100% - 96px)}.stage.face-view #avatar{inset:65px 0 30px;height:calc(100% - 95px)}.editorial{top:13px}.editorial h1{font-size:20px}.editorial p{display:none}.view-tools{top:98px}.stage-actions{margin-top:7px}.stage-actions button{min-height:40px}.wardrobe-heading{margin-top:18px}.category-tabs{position:relative;top:auto;z-index:auto}}

@media(max-width:760px){.atelier{height:calc(100svh - var(--game-guest-height,0px) - 100px);min-height:500px;display:flex;flex-direction:column;gap:10px;padding:10px 12px}.stage-column{position:relative;top:auto;flex:0 0 53%;min-height:245px;padding:0;z-index:1}.stage{height:calc(100% - 48px);min-height:195px;border-radius:65px 65px 14px 14px}.stage #avatar,.stage.face-view #avatar{inset:49px 0 25px;height:calc(100% - 74px)}.editorial{top:10px;inset-inline-start:24px}.editorial h1{font-size:18px}.editorial .eyebrow{font-size:7px}.view-tools{top:70px;gap:3px}.view-tools button{font-size:8px;padding:5px 7px;min-height:27px}.rotation{bottom:5px}.rotation button{width:28px;height:28px;min-height:28px;font-size:18px}.rotation small{font-size:8px}.stage-actions{height:40px;gap:7px;margin-top:7px}.stage-actions>button:not(.icon-button){font-size:10px;padding:6px 10px}.wardrobe-column{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 2px 12px}.wardrobe-heading{margin:3px 0 9px}.wardrobe-heading h2{font-size:19px;margin:2px 0}.wardrobe-heading p,.wardrobe-heading .eyebrow,.heading-flower{display:none}.category-tabs{position:sticky;top:0;z-index:6}.category-tabs button{flex-direction:row;justify-content:center;padding:7px 2px;gap:4px;min-height:40px}.category-tabs span{font-size:18px;height:auto}.collection-filter{padding:6px 0}.pieces{max-height:none;overflow:visible}.piece-art{height:78px}.selection-bar{padding:10px 0}.daily-card{margin-top:10px}.preview-badge{bottom:37px;font-size:9px}footer{height:35px;padding:8px 2px;margin-inline:14px}.topbar{flex-shrink:0}}

/* A soft portrait backdrop separates the face without filtering the model. */
.stage.face-view .scene{filter:saturate(.60) blur(3px);transform:scale(1.025)}
.stage.face-view[data-scene=moonlight] .scene{filter:saturate(.45) hue-rotate(220deg) brightness(.80) blur(3px)}
.stage.face-view[data-scene=sunset] .scene{filter:sepia(.25) saturate(1.2) blur(3px)}
