.game.wardrobe .gameview,.wardrobe .stage{aspect-ratio:3}
.wardrobe .avatar{height:57%}
.wardrobe .pet{height:19%}
.pink-cottage{
 position:absolute;left:56%;top:42%;width:14%;height:27%;
 object-fit:contain;object-position:center bottom;image-rendering:pixelated;pointer-events:none;
 filter:drop-shadow(0 2px 1px #50372744);
}
.stage:has(.weatherlayer[data-night="true"]) .pink-cottage{filter:brightness(.75) saturate(.9)}
.home .mapkennel{left:83%;top:72%;width:10%;height:16%;filter:drop-shadow(1px 2px #402d2e63)}
.mapkennel img{width:100%;height:100%;object-fit:contain;object-position:center bottom;image-rendering:pixelated}
.stage:has(.weatherlayer[data-night="true"]) .mapkennel img{filter:brightness(.71) saturate(.85)}
.home .sign[data-act="wardrobe"]{font-size:clamp(12px,1.05vw,16px);color:#733e53;background:#fff0e9}
.home .sign[data-act="wardrobe"]::after{background:#fff0e9}
.sofa-plush{position:absolute;transform:translate(-50%,-100%);z-index:5;line-height:0;isolation:isolate;aspect-ratio:47/62;padding:0;cursor:grab;touch-action:none;user-select:none}
.sofa-plush:active:not(:disabled){transform:translate(-50%,-100%)}
.sofa-plush.dragging{cursor:grabbing;z-index:6}
.sofa-plush::after{content:"";position:absolute;inset:-5px}
.dates .sofa-plush{width:5.2%}
.memory .sofa-plush{width:5.7%}
.sofa-plush img{display:block;width:100%;height:auto;image-rendering:pixelated;filter:saturate(.82) sepia(.08);pointer-events:none}
.sofa-plush::before{content:"";position:absolute;z-index:-1;inset:auto -4% -1% -4%;height:16%;background:radial-gradient(ellipse,#38251888,transparent 72%)}
.stage:has(.weatherlayer[data-night="true"]) .sofa-plush img{filter:brightness(.73) saturate(.76)}
.villagedock{grid-template-columns:repeat(5,minmax(0,1fr))}
.villagedock .corner[data-act="wardrobe"]{background:#fff1e7}
.pet.on-lap{height:7.1%;z-index:5}
.pet.on-lap::before{display:none}
.dates .pet.on-lap,.letters .pet.on-lap{height:15.5%}

.framed.original-frame{background:transparent}
.framed{border:1px solid transparent}
.framed:hover,.framed:focus-visible{outline:2px solid #ffed9b;outline-offset:2px}
.frame-original-detail{image-rendering:pixelated;width:100%;max-height:48vh;object-fit:contain}
.frame-chooser{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.frame-choice{padding:7px;border:1px solid #b89a68;background:#fbefd5;text-align:center}
.frame-choice:first-child{grid-column:span 2}
.frame-choice img{display:block;width:100%;aspect-ratio:var(--frame-aspect,1.3);object-fit:cover}
.frame-choice:first-child img{max-width:245px;margin-inline:auto}
.frame-choice span{display:block;padding-top:4px;color:#624c36;font-size:13px}
.wish-controls{position:sticky;top:57px;z-index:1;display:grid;gap:8px;padding:4px 0 11px;background:#fcf8e9}
.wish-views{display:flex;flex-wrap:wrap;gap:5px}
.wish-views button{min-height:36px;padding:5px 11px;border:1px solid #b7a686;border-radius:3px;background:#f8eed8;font-size:14px;font-weight:650}
.wish-views button[aria-pressed="true"]{background:#e7ecd6;border-color:#8b986c;color:#405233}
.wish-category{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:center;font-size:14px;color:#66593c}
.wish-category[hidden]{display:none}
.wish-category select{min-width:0;padding:6px 8px}
.wish-items .wishrow{min-height:42px;gap:10px}
.wish-items .wishrow label{min-width:0;line-height:1.4;overflow-wrap:anywhere}
.wish-items .wishrow input{flex:none;width:18px;height:18px;accent-color:#657947}
.wish-row-actions{display:flex;align-items:center;gap:5px;flex:none}
.wish-row-actions .wish-delete{color:#8b4537;min-width:44px;min-height:32px;padding:0 5px}
@media (pointer:coarse){.wish-row-actions .linkbtn{min-height:44px}}
.wish-group h3{padding-top:14px;border-top:1px solid #d1c5a7;font-size:16px}
.wish-group+.wish-group{margin-top:17px}
.wish-empty{padding:15px 0 8px}
.wish-board .addwish input{min-width:0}
.wish-board .addwish button{flex:none}
.wish-board>.error:empty{display:none}
.memory .sign[data-act="walk"]{font-size:12px;padding:2px 6px}
.memory .sign[data-act="walk"] i{width:12px;height:12px}
.memory .roomdock [data-act="walk"],.memory+.roomdock [data-act="walk"]{font-size:13px;min-height:32px;padding:4px 9px}
.travel-poster{
 position:absolute;left:67.8%;top:31.8%;width:18.9%;height:22%;z-index:2;padding:2px;
 background:#a46c39;border:2px solid #794d2d;border-radius:1px;box-shadow:2px 3px #6743265a;
}
.travel-poster .china-map{display:block;width:100%;height:100%;image-rendering:auto;box-shadow:inset 0 0 8px #6f482e44}
.travel-poster::after{content:"";position:absolute;inset:2px;box-shadow:inset 0 0 12px #71422166;pointer-events:none}
.stage:has(.weatherlayer[data-night="true"]) .travel-poster{filter:brightness(.73) saturate(.79)}
.stage:has(.weatherlayer[data-rain="true"]) .travel-poster{filter:brightness(.87) saturate(.81)}
.stage:has(.weatherlayer[data-night="true"][data-rain="true"]) .travel-poster{filter:brightness(.65) saturate(.76)}
.travel-poster:hover,.travel-poster:focus-visible{outline:2px solid #ffeda9;outline-offset:2px}
.travel-board{padding:clamp(10px,2vw,22px);background:#faf2db}
.travel-map{margin:0 auto 12px;max-width:850px;line-height:0;border:1px solid #c9b28a;background:#f9efd5}
.travel-map canvas{width:100%;height:auto;touch-action:manipulation}
.travel-provinces{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;max-width:920px;margin:auto}
.travel-provinces button{
 padding:5px 9px;border:1px solid #cdba90;border-radius:2px;color:#534831;background:#fff7df;font-size:13px;
}
.travel-provinces button:hover,.travel-provinces button.has-photos{background:#e4ebcb;border-color:#95a678}
.travel-map-source{text-align:center;margin-top:12px;font-size:12px;color:#685a45}
.travel-map-source a{color:#5a6849}
.travel-wall-tools{display:flex;justify-content:flex-end;margin-bottom:12px}
.travel-wall-tools i{width:18px;height:18px;margin-right:6px}
.travel-wall-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.travel-tile{display:block;padding:0;aspect-ratio:1;border:1px solid #c5ab7a;background:#e9d9b6;overflow:hidden}
.travel-tile img{display:block;width:100%;height:100%;object-fit:cover}
.travel-empty{padding:18px 0 12px;text-align:center;color:#71624c}
.travel-back{margin-bottom:10px}

.closet-tabs{display:flex;gap:6px;margin-bottom:13px}
.closet-tabs button{padding:6px 12px;border:1px solid #bc9d77;border-radius:2px;background:#fbecd9}
.closet-tabs button[aria-pressed="true"]{background:#f1d9d9;color:#693f55;border-color:#a57884}
.closet-tools{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:13px}
.closet-tools .closet-tabs{margin-bottom:0}
.closet-pages{display:flex;gap:7px;border-bottom:1px solid #c3ac8a;margin-bottom:13px}
.closet-pages button{padding:7px 11px;border:1px solid transparent;border-bottom:0;border-radius:3px 3px 0 0}
.closet-pages button[aria-pressed="true"]{background:#ecd5d5;border-color:#ae8490;color:#693f55;font-weight:700}
#dialog:has(.mix-workbench){width:min(620px,calc(100% - 28px))}
.mix-workbench{display:grid;grid-template-columns:minmax(125px,.72fr) minmax(0,1.7fr);gap:13px;align-items:start}
.mix-preview{
 display:flex;align-items:center;flex-direction:column;gap:7px;padding:8px 4px;border:1px solid #c0a27c;
 border-radius:3px;background:radial-gradient(#a7886539 .7px,transparent .9px) 0 0/5px 5px,#faecd3;
 position:sticky;top:73px;
}
.mix-preview img{height:165px;max-width:100%;object-fit:contain}
.mix-preview small{font-size:11px;text-align:center;color:#70543b}
.mix-preview button{padding:3px 6px;min-height:28px;font-size:12px}
.piece-tabs{display:flex;gap:3px;flex-wrap:wrap;margin-bottom:8px}
.piece-tabs button{background:#fbecd3;border:1px solid #c3ab83;border-radius:2px;padding:5px 6px;font-size:13px}
.piece-tabs button[aria-pressed="true"]{background:#f1d7d6;border-color:#b68d94;color:#6b3e52}
.piece-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.piece-card{
 display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 5px 7px;
 border:1px solid #cebc95;border-radius:2px;background:linear-gradient(#fff7e6,#faecd3);
}
.piece-card[aria-pressed="true"]{background:#f3dfda;border-color:#ae8590;box-shadow:inset 0 0 0 1px #dfbac0}
.piece-card img{display:block;width:100%;height:73px;object-fit:contain}
.piece-card strong{font-size:13px;text-align:center;overflow-wrap:anywhere}
.remove-piece{font-size:12px;margin-top:6px}
.mix-actions{position:sticky;bottom:0;padding:8px 0 3px;background:#fdf7e5}
.piece-upload-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;align-items:start}
.piece-upload-fields input[type=color]{width:43px;height:35px;padding:2px}
.wardrobe-photo-pickers{display:flex;flex-wrap:wrap;gap:8px}
.wardrobe-photo-pickers button{display:inline-flex;align-items:center;gap:6px;min-height:42px}
.wardrobe-photo-pickers i{width:17px;height:17px}
.my-outfits{margin-bottom:16px}
.my-outfits h3{margin:0 0 8px}
.outfit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.outfit-card{
 display:flex;align-items:center;flex-direction:column;padding:8px 3px 6px;border:1px solid #ceb498;
 border-radius:3px;background:#fff4e7;min-height:165px;
}
.outfit-card[aria-pressed="true"]{background:#f4e2de;border-color:#a87c86}
.outfit-card img{width:100%;height:110px;object-fit:contain;image-rendering:pixelated;margin-bottom:9px}
.outfit-card strong{font-size:14px;overflow-wrap:anywhere}
.outfit-card small{font-size:12px;color:#795568}
.tailoring-preview{display:flex;align-items:center;justify-content:center;gap:12px;min-height:140px}
.tailoring-preview>div{flex:0 1 46%;min-width:0}
.swatch-source{position:relative;line-height:0;border:1px solid #a98d70;max-width:190px}
.outfit-sampling{display:block;width:100%;height:auto;max-height:40vh;cursor:crosshair;touch-action:manipulation}
.sample-marker{position:absolute;display:block;width:14px;height:14px;border:2px solid white;
 outline:1px solid #3a3333;transform:translate(-50%,-50%);pointer-events:none}
.sample-marker[hidden]{display:none}
.sample-marker.marker-bottom{border-color:#e7bf7b}
.fitting-preview{
 display:grid;place-items:center;min-height:144px;padding:9px;border:1px dashed #c5a77c;
 background-color:#f9edd9;background-image:radial-gradient(#af89674b .65px,transparent .75px);background-size:5px 5px;
}
.fitting-preview img{display:block;height:128px;max-width:100%;image-rendering:pixelated;object-fit:contain}
.fabric-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.fabric-controls>div{display:flex;align-items:center;gap:4px}
.fabric-controls button{padding:4px 7px;background:#f9ecd5;border:1px solid #baa483;border-radius:2px}
.fabric-controls button[aria-pressed="true"]{background:#ead1d6;color:#6f374e;border-color:#9b6d79}
.fabric-controls input[type=color]{width:41px;height:32px;min-width:0;padding:2px}
@media(max-width:980px){.villagedock{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
 .game.wardrobe .gameview{aspect-ratio:2.1}.wardrobe .stage{height:100%;aspect-ratio:auto}
 .villagedock{grid-template-columns:1fr 1fr}
 .home .sign[data-act="wardrobe"]{font-size:11px}
 .travel-poster{padding:1px;border-width:1px}
 .travel-provinces button{padding:5px 7px}
 .travel-wall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .outfit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .outfit-card{min-height:150px}
 .closet-tools>[data-upload-outfit]{padding:7px 9px}
 .closet-tools>[data-upload-piece]{padding:7px 9px}
 .mix-workbench{grid-template-columns:minmax(98px,32%) minmax(0,1fr);gap:7px}
 .mix-preview img{height:126px}
 .piece-tabs button{padding:4px 5px;font-size:12px}
 .piece-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .piece-card img{height:62px}
}
@media(pointer:coarse){
 .travel-provinces button,.closet-tabs button,.closet-tools>[data-upload-outfit],.closet-tools>[data-upload-piece],.fabric-controls button{min-height:40px}
 .piece-tabs button,.mix-preview button{min-height:36px}
}
