/* A colorful touch cabinet; scoped so no other Lisa Land game changes. */
#dress-screen{background:linear-gradient(135deg,#6eafc6,#9b94d0 55%,#c587b3);--dress-ink:#394b64;padding:calc(var(--floating-nav-height,76px) + 8px) 14px 14px}
#dress-screen .dress-layout{grid-template-columns:minmax(0,1fr) 390px;gap:14px;max-width:1700px}
#dress-screen .dress-stage{border-radius:34px;background:#cbe4dc;box-shadow:none;border:3px solid #fff;isolation:isolate}
#dress-screen .dress-stage-heading{top:14px;left:16px;right:16px}
#dress-screen .dress-stage-heading>div{padding:10px 16px;background:#fff8e9e8;border:0;border-radius:22px}
#dress-screen .dress-stage-heading h1{font-size:clamp(20px,2.2vw,30px)!important;color:#4a526d!important}
#dress-screen .dress-kicker{color:#927557;font-size:9px;letter-spacing:1.6px}
#dress-screen .dress-stage-heading label{display:none}
#dress-screen .dress-wardrobe{position:relative;isolation:isolate;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:0;padding:22px 18px;border:4px solid #bbe8e4;border-radius:34px;background:repeating-linear-gradient(90deg,#369ba521 0 2px,transparent 2px 44px),linear-gradient(145deg,#85d4d5,#5fb2c0);box-shadow:inset 0 0 0 5px #4294a44a,inset 0 -15px 0 #38889433;overflow:auto}
#dress-screen .dress-wardrobe:before{content:'';position:absolute;inset:8px;border:1px solid #dafff166;border-radius:25px;pointer-events:none;z-index:-1;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='220' viewBox='0 0 170 220'%3E%3Cpath d='M9 220Q31 155 10 90T15 0M157 220Q133 150 158 80T156 0' fill='none' stroke='%232b8697' stroke-width='2' opacity='.25'/%3E%3Cg fill='%2343929a' opacity='.22'%3E%3Cellipse cx='19' cy='37' rx='6' ry='16' transform='rotate(35 19 37)'/%3E%3Cellipse cx='12' cy='129' rx='6' ry='16' transform='rotate(-35 12 129)'/%3E%3Cellipse cx='150' cy='79' rx='6' ry='16' transform='rotate(-35 150 79)'/%3E%3Cellipse cx='157' cy='177' rx='6' ry='16' transform='rotate(35 157 177)'/%3E%3C/g%3E%3C/svg%3E");background-size:100% 220px}
#dress-screen .dress-wardrobe h2{font-size:27px;color:#203f5e;text-align:center;margin:0 0 4px;text-shadow:0 1px #c8f3ef}
#dress-screen .dress-wardrobe>p{font-size:14px;min-height:38px;text-align:center;color:#234b64;margin:0 3px 14px;line-height:1.4}
#dress-screen .dress-mode{background:#b8dedb;border:0;border-radius:22px;padding:5px;gap:5px;margin-bottom:16px}
#dress-screen .dress-mode button{border-radius:17px;min-height:50px;font-size:14px;color:#777087}
#dress-screen .dress-mode button[aria-pressed=true]{background:#8061b1;color:#fff3fa;box-shadow:0 3px 0 #5d48932b}
#dress-screen .dress-closet{grid-template-columns:83px minmax(0,1fr);gap:12px;min-height:0}
#dress-screen .dress-tabs{gap:9px}
#dress-screen .dress-tabs button{--tab:#ffcf61;--edge:#eab84d;border:3px solid transparent;background:var(--tab);border-radius:23px;color:#51494b;font-size:14px;min-height:83px;padding:5px;gap:0;box-shadow:0 4px 0 var(--edge);overflow:visible;transform:none}
#dress-screen #dress-tab-top{--tab:#9edbd9;--edge:#6cbebf}
#dress-screen #dress-tab-bottom{--tab:#c4b3ec;--edge:#aa92d7}
#dress-screen #dress-tab-accessory{--tab:#f6adc4;--edge:#df8ca8}
#dress-screen .dress-tabs button img{height:43px;width:53px;transform:none;object-fit:contain}
#dress-screen .dress-tabs button[aria-selected=true]{border-color:#fff;outline:3px solid var(--edge);outline-offset:0;background:var(--tab);color:#303a50;transform:none}
#dress-screen .dress-tabs button[data-filled=true]:after{top:-4px;right:-3px;line-height:23px;width:23px;border:2px solid #fff;font-size:14px;background:#429c7c}
#dress-screen .dress-choice-area{gap:10px;justify-content:space-between;background:#328c9d22;border-radius:24px;padding:5px}
#dress-screen #dress-items{height:354px;grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-columns:calc((100% - 10px)/2);gap:10px;padding:3px 3px 8px;scrollbar-width:none}
#dress-screen #dress-items::-webkit-scrollbar{display:none}
#dress-screen .dress-piece{background:#edf5fc;border:3px solid transparent;border-radius:24px;box-shadow:none;padding:6px;gap:4px;justify-content:center;overflow:hidden;color:#45516b;transition:transform .15s}
#dress-screen .dress-piece:nth-child(4n+2){background:#fff1cc}#dress-screen .dress-piece:nth-child(4n+3){background:#fce3ed}#dress-screen .dress-piece:nth-child(4n){background:#e4f3dc}
#dress-screen .dress-piece img{height:107px;width:100%;min-height:0;filter:drop-shadow(0 4px 3px #5d52601b)}
#dress-screen .dress-piece span{font-size:12px;min-height:30px;line-height:1.2;display:flex;align-items:center;justify-content:center;text-align:center}
#dress-screen .dress-piece[aria-pressed=true]{border-color:#48a98f!important;background:#dbf3e9!important;box-shadow:none}
#dress-screen .dress-piece[aria-pressed=true]:after{top:5px;right:5px;background:#429c7c}
#dress-screen .dress-piece:active{transform:scale(.97)}
#dress-screen .dress-rail-tools{font-size:13px;color:#214861;gap:8px}
#dress-screen .dress-rail-tools button{height:50px;width:58px;min-width:58px;border:0;border-radius:18px;background:#f4cb6c;box-shadow:0 4px 0 #dbae4a;color:#644b31;font-size:34px}
#dress-screen .dress-finish{margin-top:16px;gap:8px;flex-wrap:wrap}
#dress-screen .dress-finish>span{color:#254f5b;font-size:13px}
#dress-screen #dress-progress{border-radius:20px;padding:8px 14px;background:#e4f2df;color:#48755d;font-size:16px}
#dress-screen .dress-turn{left:14px;bottom:98px;transform:none;gap:6px;padding:0;border:0;background:none;box-shadow:none;width:auto}
#dress-screen .dress-turn span{display:none}
#dress-screen .dress-turn button{width:49px;height:49px;min-width:49px;background:#fff9ed;border:3px solid #fff;color:#8a6ba4;font-size:26px;box-shadow:0 3px 0 #9b7b9b25}
#dress-screen .dress-friends{position:absolute;z-index:3;bottom:10px;left:12px;right:12px;display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;padding:5px 3px 8px;scrollbar-width:none;justify-content:safe center}
#dress-screen .dress-friends button{flex:0 0 58px;width:58px;min-height:70px;display:grid;justify-items:center;align-content:center;gap:0;border:3px solid transparent;border-radius:21px;background:#fff8eadf;box-shadow:0 3px 0 #ad9e8a25;font:800 11px Nunito,sans-serif;color:#5e5867;padding:0;touch-action:manipulation}
#dress-screen .dress-friends img{width:43px;height:43px;object-fit:contain;pointer-events:none}
#dress-screen .dress-friends button[aria-pressed=true]{background:#ffe18b;border-color:#fff;box-shadow:0 0 0 2px #e2b457}
#dress-screen .scene-palettes{bottom:auto;top:84px;right:12px;background:#ffffffb0;border:0;padding:3px;border-radius:20px;box-shadow:none}
#dress-screen .scene-palettes button{width:44px;height:44px;min-width:44px;background:transparent}
#dress-screen .scene-palettes button[aria-pressed=true]{border-color:#88ae9c;background:#f0fff2}
#dress-screen .dress-challenge{background:#f1e9fc;border:0;border-radius:22px;padding:9px;margin-bottom:12px}
#dress-screen .dress-challenge-heading{float:none;width:auto;min-height:0;display:flex}
#dress-screen .dress-challenge-heading button{min-height:44px;background:#fff;border:0;border-radius:16px}
#dress-screen #dress-reference img{height:48px}
#dress-screen .dress-runway-caption{bottom:10px;min-width:0;padding:8px 18px;background:#fff7e9f0;border:3px solid #fff;box-shadow:none;color:#7e5b83}
#dress-screen .dress-runway-caption span,#dress-screen .dress-runway-caption small{display:none}
#dress-screen .dress-runway-caption strong{font-size:23px;margin:0}
#dress-screen[data-complete=true] .dress-friends{display:none}
#dress-screen[data-complete=true] .dress-layout{grid-template-columns:1fr;grid-template-rows:1fr}
#dress-screen[data-complete=true] .dress-wardrobe{display:none}
#dress-screen button:focus-visible{outline:4px solid #68459b;outline-offset:2px}
@media(max-width:1000px) and (min-height:600px){
 #dress-screen .dress-layout{grid-template-columns:minmax(0,1fr) 330px;grid-template-rows:1fr;gap:10px}
 #dress-screen .dress-wardrobe{padding:16px 12px;max-height:100%;border-radius:28px}
 #dress-screen .dress-wardrobe h2{display:block;font-size:23px}
 #dress-screen .dress-closet{grid-template-columns:70px minmax(0,1fr);gap:10px}
 #dress-screen .dress-tabs button{min-height:75px;font-size:12px}
 #dress-screen #dress-items{height:324px;grid-auto-columns:calc((100% - 8px)/2);gap:8px}
 #dress-screen .dress-piece img{height:92px}
 #dress-screen .dress-friends{justify-content:flex-start}
}
@media(max-width:700px) and (min-height:600px){
 #dress-screen{padding:calc(var(--floating-nav-height,70px) + 4px) 7px 7px}
 #dress-screen .dress-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 302px;gap:7px}
 #dress-screen .dress-wardrobe{padding:8px 10px;border-radius:26px;max-height:none;overflow:hidden;justify-content:flex-start}
 #dress-screen .dress-wardrobe h2{display:none}
 #dress-screen .dress-wardrobe>p{font-size:11px;min-height:15px;margin:0 0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #dress-screen .dress-mode{margin-bottom:7px;padding:3px;border-radius:17px}
 #dress-screen .dress-mode button{min-height:44px;font-size:12px;padding:4px}
 #dress-screen .dress-closet{grid-template-columns:61px minmax(0,1fr);gap:8px;flex:1}
 #dress-screen .dress-tabs{gap:5px}
 #dress-screen .dress-tabs button{min-height:44px;border-radius:15px;font-size:10px;padding:1px;box-shadow:0 2px var(--edge);border-width:2px;display:flex;flex-direction:column;gap:0}
 #dress-screen .dress-tabs button img{height:23px;width:29px}
 #dress-screen .dress-tabs button[data-filled=true]:after{line-height:16px;width:16px;font-size:10px;right:-4px;top:-4px}
 #dress-screen #dress-items{height:155px;grid-auto-columns:calc((100% - 8px)/2);gap:6px;padding:1px 3px 4px}
 #dress-screen .dress-piece{padding:2px;border-radius:17px;gap:0;border-width:2px}
 #dress-screen .dress-piece img{height:47px}
 #dress-screen .dress-piece span{font-size:10px;min-height:22px}
 #dress-screen .dress-rail-tools{font-size:10px}
 #dress-screen .dress-rail-tools button{height:44px;width:50px;min-width:50px;border-radius:14px;font-size:27px;box-shadow:0 2px #dbae4a}
 #dress-screen .dress-choice-area{gap:3px}
 #dress-screen .dress-finish{display:none}
 #dress-screen .dress-stage{border-radius:26px}
 #dress-screen .dress-stage-heading{left:9px;top:9px}
 #dress-screen .dress-stage-heading>div{padding:7px 10px;border-radius:17px}
 #dress-screen .dress-stage-heading h1{font-size:18px!important;max-width:none}
 #dress-screen .dress-kicker{display:none}
 #dress-screen .scene-palettes{top:53px;right:5px;gap:0;padding:0}
 #dress-screen .scene-palettes button{width:44px;height:44px;min-width:44px}
 #dress-screen .scene-palettes button span{width:23px;height:23px}
 #dress-screen .dress-friends{bottom:2px;left:4px;right:4px;gap:5px;padding:4px}
 #dress-screen .dress-friends button{flex-basis:49px;min-height:55px;width:49px;border-radius:16px;font-size:9px}
 #dress-screen .dress-friends img{height:33px;width:33px}
 #dress-screen .dress-turn{bottom:65px;left:7px;gap:4px}
 #dress-screen .dress-turn button{width:44px;height:44px;min-width:44px;font-size:22px}
 #dress-screen[data-mode=match] .dress-layout{grid-template-rows:minmax(0,1fr) 368px}
 #dress-screen .dress-challenge{padding:4px 8px;margin-bottom:5px}
 #dress-screen .dress-challenge-heading{font-size:11px}
 #dress-screen #dress-reference img{height:32px}
}
@media(max-height:599px){
 #dress-screen{padding:calc(var(--floating-nav-height,60px) + 3px) 7px 7px}
 #dress-screen .dress-layout{grid-template-columns:minmax(0,1fr) 338px;grid-template-rows:1fr;gap:7px}
 #dress-screen .dress-wardrobe{padding:8px 10px;justify-content:flex-start;overflow:auto}
 #dress-screen .dress-wardrobe h2{display:none}
 #dress-screen .dress-wardrobe>p{min-height:15px;font-size:11px;margin:0 0 4px}
 #dress-screen .dress-mode{margin-bottom:7px;padding:3px}
 #dress-screen .dress-mode button{min-height:44px;font-size:12px;padding:3px}
 #dress-screen .dress-closet{grid-template-columns:65px minmax(0,1fr);gap:9px}
 #dress-screen .dress-tabs{gap:5px}
 #dress-screen .dress-tabs button{min-height:44px;font-size:10px;border-radius:16px;flex-direction:column;padding:1px}
 #dress-screen .dress-tabs button img{height:23px;width:30px}
 #dress-screen .dress-tabs button[data-filled=true]:after{line-height:16px;width:16px;font-size:10px}
 #dress-screen #dress-items{height:150px;gap:7px;grid-auto-columns:calc((100% - 7px)/2)}
 #dress-screen .dress-piece img{height:43px}
 #dress-screen .dress-piece span{font-size:10px;min-height:24px}
 #dress-screen .dress-piece{padding:1px;border-radius:17px}
 #dress-screen .dress-rail-tools button{height:44px;min-width:50px;width:50px}
 #dress-screen .dress-finish{display:none}
 #dress-screen .dress-friends{bottom:1px;left:4px;right:4px;padding:3px;justify-content:flex-start}
 #dress-screen .dress-friends button{flex-basis:48px;width:48px;min-height:51px;font-size:9px}
 #dress-screen .dress-friends img{height:30px;width:30px}
 #dress-screen .dress-turn{bottom:62px;left:7px}
 #dress-screen .dress-stage-heading{top:8px;left:8px}
 #dress-screen .dress-stage-heading h1{font-size:18px!important}
 #dress-screen .dress-kicker{display:none}
 #dress-screen .scene-palettes{top:53px;right:5px}
 #dress-screen .dress-challenge{padding:4px 6px;margin-bottom:5px}
 #dress-screen #dress-reference img{height:30px}
}
@media(prefers-reduced-motion:reduce){#dress-screen .dress-piece{transition:none}}

#dress-screen .dress-another{display:none;position:absolute;bottom:80px;right:14px;z-index:3;min-height:48px;padding:10px 18px;border:3px solid #fff;border-radius:20px;background:#f9d078;color:#573f3b;font:900 14px Nunito,sans-serif;touch-action:manipulation;cursor:pointer}
#dress-screen[data-complete=true] .dress-turn{display:flex;bottom:80px;left:12px}
#dress-screen[data-complete=true] .dress-another{display:block}
