/* Real raster layers share the same rig in the studio, portraits, own island and visits. */
.paper-character{position:relative;display:block;aspect-ratio:4/7;height:100%;width:auto;max-width:none;margin:auto;visibility:hidden;isolation:isolate}
.paper-character.art-ready{visibility:visible}.paper-layer{position:absolute;display:block;pointer-events:none}.paper-layer>.sprite-window{display:block;width:100%;height:100%;aspect-ratio:auto}.paper-layer .sprite-window>img{display:block}.paper-character.watering{transform:rotate(5deg);transform-origin:50% 95%}.paper-water{animation:watering-can 1s ease-in-out infinite alternate;transform-origin:25% 15%}
.environment-map{position:absolute;inset:0;pointer-events:none}#build-layer{inset:auto;z-index:2}.environment-piece{position:absolute;display:block}.environment-piece>.sprite-window{width:100%;height:100%;aspect-ratio:auto}.environment-piece>.sprite-window img{pointer-events:none}#house-open{position:absolute;background:transparent;z-index:3;border:0;border-radius:24px;cursor:pointer}#house-open:focus-visible{outline:3px solid #f4da83;outline-offset:3px}#island-resident{position:absolute;transform:translate(-50%,-100%);z-index:5;pointer-events:none;filter:drop-shadow(0 5px 2px #1d405d40)}#island-resident>span{display:block;width:100%;height:100%}#island-resident>small{position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);white-space:nowrap;color:#345568;background:#fff9e8e3;border-radius:14px;font-size:10px;padding:4px 10px}
#player-art>.paper-character{height:100%;width:auto}.island-mini{position:relative;display:block;width:100%;aspect-ratio:1536/1024;overflow:hidden;border-radius:18px}.island-mini>img{width:100%;height:100%;object-fit:cover;display:block}.portrait{overflow:hidden}.portrait>.paper-character{height:210%;transform:translateY(-2%);margin:0 auto}.portrait .paper-character{width:auto!important}
#sheet.dressing-dialog{width:min(1120px,calc(100vw - 30px));max-width:1120px;max-height:calc(100dvh - 24px);padding:25px 28px 18px;color:#34546b;background:#fff9ed}#sheet.dressing-dialog #panel-title{font-size:26px;line-height:1.5;margin:7px 45px 8px 0;color:#2d4c65}#sheet.dressing-dialog .dress-intro{font-size:12px!important;line-height:1.9;color:#6e8190;margin:0 0 15px}#sheet.dressing-dialog .dress-collections{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:0 0 16px}.dress-collections article{padding:10px 12px;background:#f0eee4;border:1px solid #d7dbd6;border-radius:14px;display:flex;flex-direction:column;gap:5px;color:#71818b}.dress-collections article.earned{background:#e5eee3;border-color:#acbca3;color:#4f7158}.dress-collections b{font-size:12px}.dress-collections small{font-size:10px;line-height:1.6}.dress-collections span{font-size:10px}
#sheet.dressing-dialog .dress-studio{grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:22px}#sheet.dressing-dialog .dress-stage{height:430px;min-height:430px;background:#d8e8ef;border:1px solid #d0dee4;border-radius:20px;box-shadow:none;align-self:start}#sheet.dressing-dialog .dress-stage-label{top:17px;left:17px;color:#496c83;font-size:10px;z-index:3}#sheet.dressing-dialog .dress-island{left:0;right:0;width:100%;height:100%;bottom:0;transform:none;filter:none}.dress-island .island-mini{width:100%;height:100%;aspect-ratio:auto;border-radius:0}.dress-island .island-mini>img{object-fit:cover;object-position:35% 50%}.dress-island .environment-map{width:150%;height:100%;left:-25%;top:0}#sheet.dressing-dialog .dress-avatar{width:170px;height:297px;left:52%;top:95px;bottom:auto;margin:0;transform:translateX(-50%);z-index:3;filter:drop-shadow(0 6px 4px #23495d55)}#sheet.dressing-dialog .dress-stage>p{bottom:8px;left:12px;right:12px;color:#315770;background:#fff8e5e8;border-radius:16px;padding:8px 10px;line-height:1.6;font-size:10px!important;z-index:4}
#sheet.dressing-dialog .dress-controls{max-height:430px;padding:0 5px 0 0;scrollbar-color:#a9bdc7 transparent;scrollbar-width:thin}#sheet.dressing-dialog .dress-tabs{gap:12px;border-bottom-color:#c9d7dd;position:sticky;top:0;background:#fff9ed;z-index:5}#sheet.dressing-dialog .dress-tabs button{font-size:14px;color:#8194a0;padding:12px 15px}#sheet.dressing-dialog .dress-tabs button.selected{color:#315e7e;border-bottom-color:#5485a7}#sheet.dressing-dialog .dress-presets{gap:8px;margin-top:13px}#sheet.dressing-dialog .dress-presets button{background:#eef2ef;border-color:#cfdbdd;color:#587181;border-radius:12px;min-height:65px}.dress-presets span .ui-icon{width:23px;height:23px;display:block;margin:0 auto}#sheet.dressing-dialog .dress-tip{color:#8795a0!important;line-height:1.8}#sheet.dressing-dialog .dress-controls fieldset{margin-bottom:18px}#sheet.dressing-dialog .dress-controls legend{font-size:12px;font-weight:600;color:#526f81;margin:0 0 9px}#sheet.dressing-dialog .dress-choice-grid{gap:8px}#sheet.dressing-dialog .dress-choice-grid button{border-radius:12px;border-color:#cdd9df;background:#fffdf5;color:#587586;font-size:11px;line-height:1.6;padding:9px 8px;min-height:46px;gap:5px}#sheet.dressing-dialog .dress-choice-grid button.selected{border-color:#5b8bad;background:#e4eff4;color:#274e69;box-shadow:inset 0 0 0 1px #5b8bad}#sheet.dressing-dialog .dress-choice-grid button:disabled{opacity:.58}#sheet.dressing-dialog .dress-choice-grid button small{font-size:9px;line-height:1.5;color:#8b8072}#sheet.dressing-dialog .visual-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.visual-choices .choice-label{display:block;width:100%}.visual-choices .choice-art{display:flex;align-items:center;justify-content:center;height:82px;width:100%;overflow:hidden}.choice-art .sprite-window{max-width:100%;max-height:100%}.choice-art.character-choice{height:107px}.character-choice>.paper-character{height:100%;width:auto}.choice-art.hair-choice .sprite-window{width:80px;height:70px;aspect-ratio:auto}.choice-art.accessory-choice .sprite-window{width:80px;max-height:72px}.choice-art.building-choice .sprite-window{width:100%;height:76px;aspect-ratio:auto}.choice-art.furniture-choice .sprite-window{height:75px;width:auto;max-width:100%}.choice-art.fence-choice .sprite-window{width:100%;height:42px;aspect-ratio:auto}#sheet.dressing-dialog .color-choices i{width:15px;height:15px;border-color:#9aadb7}#sheet.dressing-dialog .dress-save-row{border-color:#d5dfdf;position:sticky;bottom:-19px;background:#fff9edf7;backdrop-filter:blur(7px);z-index:8;margin-top:16px;padding:15px 0 10px}#sheet.dressing-dialog .dress-save-row b{color:#42687d;font-size:12px}#sheet.dressing-dialog .dress-save-row small{color:#889aa3;font-size:10px;line-height:1.6}#sheet.dressing-dialog .dress-save-row button{min-height:46px;font-size:12px;border:1px solid #527e98;border-radius:24px;padding:10px 15px;background:#3e718e;color:#fffbed}#sheet.dressing-dialog .dress-save-row button.secondary{background:#f7f5e9;color:#53768a;border-color:#ccd8db}#sheet.dressing-dialog .dress-save-row button:disabled{opacity:.52}
@keyframes watering-can{to{rotate:12deg;translate:2px 3px}}
@media(max-width:800px){#sheet.dressing-dialog{padding:23px 18px 15px;max-width:calc(100vw - 20px);width:calc(100vw - 20px)}#sheet.dressing-dialog .dress-studio{grid-template-columns:minmax(0,.9fr) minmax(0,1fr);gap:15px}#sheet.dressing-dialog .visual-choices{grid-template-columns:repeat(2,minmax(0,1fr))}#sheet.dressing-dialog .dress-collections{gap:7px}.dress-collections article{padding:8px}.dress-collections b{font-size:11px}.dress-collections small,.dress-collections span{font-size:9px}#sheet.dressing-dialog .dress-avatar{width:150px;height:263px;top:120px}#sheet.dressing-dialog .dress-save-row{flex-wrap:wrap}#sheet.dressing-dialog .dress-save-row>div{width:100%;flex-basis:100%}}
@media(max-width:600px){#sheet.dressing-dialog{padding:23px 14px 15px}#sheet.dressing-dialog #panel-title{font-size:21px;margin-right:35px}#sheet.dressing-dialog .dress-intro{font-size:11px!important}#sheet.dressing-dialog .dress-collections{display:flex;overflow-x:auto;gap:8px;padding-bottom:5px}.dress-collections article{min-width:180px}#sheet.dressing-dialog .dress-studio{display:block}#sheet.dressing-dialog .dress-stage{height:275px;min-height:275px;margin-bottom:12px}#sheet.dressing-dialog .dress-avatar{height:218px;width:125px;top:32px;left:58%}#sheet.dressing-dialog .dress-controls{max-height:none;overflow:visible;padding:0}#sheet.dressing-dialog .dress-tabs{top:-1px}#sheet.dressing-dialog .visual-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.visual-choices .choice-art{height:70px}.choice-art.character-choice{height:100px}#sheet.dressing-dialog .dress-save-row{bottom:-15px;padding:12px 0 14px;gap:9px}#sheet.dressing-dialog .dress-save-row b{font-size:11px}#sheet.dressing-dialog .dress-save-row small{font-size:9px}#sheet.dressing-dialog .dress-save-row button{flex:1;font-size:11px;padding:10px 9px}#sheet.dressing-dialog .dress-island .environment-map{width:150%;left:-25%}}
@media(prefers-reduced-motion:reduce){.paper-water{animation:none!important}}

#sheet.dressing-dialog .dress-island .island-mini{position:absolute;width:auto;max-width:none;height:100%;aspect-ratio:1536/1024;left:50%;transform:translateX(-50%)}
#sheet.dressing-dialog .dress-island .environment-map{width:100%;height:100%;left:0;top:0}
#sheet.dressing-dialog #sheet-close{position:sticky;top:0;right:0;float:right;margin:-8px -8px 0 0;z-index:20;background:#e6edf0;color:#345c74}
#sheet.dressing-dialog .dress-tabs button{background:transparent;border:0;border-radius:0}
#sheet.dressing-dialog .dress-tabs button.selected{background:transparent;border-bottom:3px solid #5485a7}
@media(min-width:601px){#sheet.dressing-dialog .dress-stage{height:clamp(310px,calc(100dvh - 390px),430px);min-height:0}#sheet.dressing-dialog .dress-controls{max-height:clamp(310px,calc(100dvh - 390px),430px)}#sheet.dressing-dialog .dress-avatar{height:calc(100% - 70px);max-height:300px;width:auto;aspect-ratio:4/7;top:42px;left:54%}}
@supports(width:1cqw){#sheet.dressing-dialog .dress-stage{container-type:size}#sheet.dressing-dialog .dress-island .island-mini{min-width:0;width:max(100cqw,150cqh);height:auto;aspect-ratio:1536/1024;left:50%;top:50%;transform:translate(-50%,-50%)}}
@media(min-width:601px){#sheet.dressing-dialog .dress-avatar{height:calc(100% - 90px);max-height:280px;top:35px}}
@media(max-width:600px){#sheet.dressing-dialog .dress-stage{position:sticky;top:0;height:220px;min-height:220px;z-index:6;border:1px solid #cedbe1;margin-bottom:0}#sheet.dressing-dialog .dress-avatar{height:170px;width:98px;top:15px;left:58%}#sheet.dressing-dialog .dress-stage>p{font-size:9px!important;padding:6px 8px;bottom:2px}#sheet.dressing-dialog .dress-tabs{position:sticky;top:220px;background:#fff9ed;z-index:7}#sheet.dressing-dialog .dress-controls{overflow:visible}#sheet.dressing-dialog #sheet-close{z-index:30}}
