/* One shared layered body makes every combination fit every character. */
.dressed-character{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 3px 1px #69432920);pointer-events:none}.garment-icon{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}.product .garment-icon{width:clamp(95px,30vw,160px);height:clamp(95px,30vw,160px);padding:10px;margin:auto}.product .preview-icon{display:block;margin:auto}.avatar .dressed-character{position:absolute;inset:0}.customize-dialog{padding:0;width:min(94vw,510px);height:min(88dvh,820px);max-height:88dvh;overflow:hidden;flex-direction:column}.customize-dialog[open]{display:flex}.customize-dialog .avatar-dialog-header{padding:16px 17px 10px;margin:0;flex-shrink:0}.customize-dialog .avatar-dialog-header h2{font-size:23px}.customize-dialog .avatar-dialog-header p{font-size:13px;margin:3px 0 0}.custom-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:3px;margin:0 16px 12px;background:#f0e5d4;border-radius:15px;flex-shrink:0}.custom-tabs button{border-radius:12px;padding:10px;font-size:16px;color:#826c52;background:transparent}.custom-tabs button[aria-selected=true]{background:#fffaf0;color:#286a60;box-shadow:0 2px 4px #7b552718;font-weight:600}.custom-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;padding:0 16px 16px;flex:1}.customize-dialog .avatar-grid{gap:10px}.customize-dialog .avatar-card{min-height:210px}.customize-dialog .avatar-thumbnail{width:94px;height:165px}.outfit-preview{display:flex;align-items:center;gap:14px;background:radial-gradient(ellipse at 28% 80%,#cfe6d355,transparent 65%),linear-gradient(#fff9eb,#f9e7cc);border:1px solid #ead0ac;border-radius:19px;padding:8px 14px;margin-bottom:12px;min-height:188px}.outfit-figure{height:180px;width:103px;flex-shrink:0}.outfit-caption{flex:1;min-width:0}.outfit-caption small{letter-spacing:1px;font-size:10px;color:#8f795e}.outfit-caption h3{font-size:20px;margin:7px 0;color:var(--ink);font-weight:500}.outfit-caption p{font-size:13px;line-height:1.35;margin:6px 0 10px}.custom-coins{display:inline-block;padding:5px 10px;border:1px solid #e2c18e;border-radius:14px;background:#fff5d7;font-size:15px}.wardrobe-categories{display:flex;gap:5px;overflow:auto;padding:0 0 8px;margin-bottom:5px;scrollbar-width:thin}.wardrobe-categories .chip{white-space:nowrap;padding:7px 11px;font-size:13px;background:#f6eedf;box-shadow:none;border:1px solid #e4d7c3}.wardrobe-categories .chip.active{background:#dfeae2;color:#315f56;border-color:#c7d8ce;box-shadow:none}.wardrobe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.wardrobe-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;min-height:126px;padding:11px 6px;border:2px solid #e5c5a0;border-radius:18px;background:linear-gradient(135deg,#fffdf3,#fff1dc);box-shadow:inset 0 2px white,0 2px #e5c9a6;color:var(--ink)}.wardrobe-card.selected{background:#eaf3e5;border-color:#579f88;box-shadow:inset 0 2px white,0 2px #95bda4}.garment-preview{display:block;width:90px;height:65px;padding:2px 6px}.wardrobe-name{font-size:14px;line-height:1.2}.wardrobe-price{font-size:12px;color:#8a6a43}.wardrobe-action{position:sticky;bottom:-16px;background:#fff7e7f5;border-top:1px solid #e9d1b3;padding:10px 0 13px;margin-top:15px;text-align:center;backdrop-filter:blur(8px)}.wardrobe-action>span{display:block;font-size:12px;color:#8a735b;margin-bottom:6px}.wardrobe-action button{width:100%;padding:12px;font-size:16px}.wardrobe-action button:disabled{background:#e6e9db;color:#72816d;border-color:#c7d2bb;box-shadow:none;cursor:default}.customize-dialog button:focus-visible{outline:3px solid #197c72;outline-offset:2px}@media(min-width:600px){.customize-dialog .avatar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-height:650px){.outfit-preview{min-height:150px}.outfit-figure{height:140px;width:80px}.customize-dialog .avatar-thumbnail{height:135px;width:77px}.customize-dialog .avatar-card{min-height:180px}}@media(orientation:landscape) and (max-height:500px){.customize-dialog{width:min(94vw,650px)}.outfit-preview{min-height:120px}.outfit-figure{height:115px;width:66px}.wardrobe-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* V27: room and character shopping share inventory and the exact try-on overlay. */
.shop-tabs{margin:0 0 13px}.shop-tabs button[aria-pressed=true]{background:#fffaf0;color:#286a60;box-shadow:0 2px 4px #7b552718;font-weight:600}.shop-try-hint{text-align:center;font-size:13px;color:#897058;margin:3px 0 13px}.shop-clothing-filters{margin-bottom:10px!important}.product .preview-icon{width:100%}.product .preview-icon .garment-icon{max-width:100%}
/* V28: store decorations without losing ownership or their room positions. */
.room-screen #room #my-decorations{position:absolute;top:12px;left:12px;z-index:8;min-height:40px;padding:8px 11px;font-size:13px;background:#fff7e9ed;border:1px solid #d2b68f;box-shadow:inset 0 1px white,0 2px 6px #67432725;backdrop-filter:blur(4px);border-radius:16px;color:#70523b}.decoration-tools{position:absolute;left:10px;right:10px;bottom:12px;z-index:9;display:flex;gap:8px;align-items:center;padding:8px 9px;border:1px solid #d3ae7f;border-radius:17px;background:#fff8eaf5;box-shadow:0 3px 12px #62401e30}.decoration-tools>span{flex:1;min-width:0;font-size:13px;color:#70523b}.decoration-tools .chip{white-space:nowrap;min-height:40px;background:#edf0df;border-color:#c4cfb7;box-shadow:none;color:#456450}.dismiss-decoration{background:transparent;color:#86694e;font-size:24px;min-width:32px;min-height:40px}.room-item.decoration-selected{filter:drop-shadow(0 0 5px #fff7d0) drop-shadow(0 0 3px #267a6e)}.decoration-storage-dialog{width:min(94vw,510px);padding:16px}.decoration-storage-dialog .avatar-dialog-header h2{font-size:23px}.decoration-storage-dialog .avatar-dialog-header p{font-size:12px;line-height:1.3;max-width:260px}.decoration-storage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stored-decoration{padding:10px 8px;background:#fffaf0;border:1px solid #e1c29c;border-radius:19px;text-align:center}.stored-decoration-art{height:96px;display:flex;align-items:center;justify-content:center}.stored-decoration-art .item-art{width:95px;height:95px}.stored-decoration h3{font-size:15px;font-weight:500;margin:6px 0}.stored-decoration>span{display:block;font-size:12px;color:#8d7458}.stored-decoration>button{width:100%;margin-top:8px;font-size:13px;min-height:40px;box-shadow:none}.stored-decoration .bring-back{background:#dfede2;border-color:#b5d0be;color:#315f56}.empty-storage{text-align:center;line-height:1.5;padding:25px 10px}.stored-decoration-art .garment-icon{display:none}@media(max-width:360px){.room-screen #room #my-decorations,.room-screen #room #look{font-size:12px;padding:7px 9px}}@media(orientation:landscape) and (max-height:500px){.room-screen #room #my-decorations{top:8px;left:8px;min-height:34px;padding:6px 9px;font-size:12px}.decoration-storage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* V30: special collection with more detailed clothing artwork. */
.special-piece{position:relative;border-color:#d9bb7e;background:linear-gradient(135deg,#fffdf2,#fff1d9)}.piece-badge{display:inline-block;position:absolute;top:7px;right:7px;padding:3px 6px;border:1px solid #e5cea0;border-radius:9px;background:#fff2c7;color:#96713b;font-size:9px;line-height:1;font-weight:500;z-index:1;pointer-events:none}.special-piece .garment-preview{margin-top:5px}.special-piece .garment-icon{filter:drop-shadow(0 2px 1px #70503715)}

/* V31: a separate refresh control before the corner menu. */
nav .refresh-game,.earning-screen nav .refresh-game{order:3;flex:0 0 40px;min-width:40px;min-height:44px;align-self:stretch;padding:0;display:grid;place-items:center;background:linear-gradient(#fffaf0,#f3e4ce);border:1px solid #ddc19e;border-radius:16px;box-shadow:inset 0 2px white,0 2px #d1b694;color:#806445;text-shadow:none}nav .refresh-game svg{width:21px;height:21px}nav .refresh-game:focus-visible{outline:3px solid #1b817e;outline-offset:2px}@media(max-width:360px){nav .refresh-game,.earning-screen nav .refresh-game{flex-basis:36px;min-width:36px}nav button[data-view]{min-width:44px}}@media(orientation:landscape) and (max-height:500px){nav .refresh-game,.earning-screen nav .refresh-game{min-height:0;flex-basis:35px;min-width:35px;border-radius:12px}}
/* V32: a small selector and one extra room, without a house map. */
.room-screen #room .room-selector{position:absolute;top:11px;left:12px;z-index:8;background:#fff8e9e8;border:1px solid #d5ba96;border-radius:14px;color:#73563c;font-size:13px;padding:6px 11px;min-height:36px;box-shadow:0 2px 6px #67432715;backdrop-filter:blur(4px)}.room-selector span{margin-left:6px}.room-screen #room #my-decorations{top:auto;bottom:12px;left:12px}.decoration-tools{bottom:62px}.rooms-dialog{width:min(94vw,500px)}.home-room-grid{display:grid;gap:14px}.home-room-card{border:1.5px solid #e0c19a;border-radius:20px;background:#fffaf0;overflow:hidden;display:grid;grid-template-columns:38% 1fr}.home-room-card.current-room{border-color:#75a38c}.home-room-card>img{width:100%;height:100%;min-height:180px;object-fit:cover}.home-room-card>div{padding:12px}.home-room-card h3{font-size:19px;margin:0 0 6px;font-weight:500}.home-room-card p{font-size:13px;margin:0 0 12px;line-height:1.3}.home-room-card button{width:100%;padding:10px 4px;font-size:14px}.home-room-card button:disabled{background:#e6e9db;color:#72816d;border-color:#c7d2bb;box-shadow:none;cursor:default}.home-room-card small{display:block;font-size:11px;letter-spacing:0;margin-top:9px;color:#937553}.rooms-note{text-align:center;font-size:12px;line-height:1.4;margin:15px 0 0}@media(max-width:360px){.room-screen #room .room-selector{font-size:12px;padding:6px 9px}.home-room-card h3{font-size:17px}}@media(orientation:landscape) and (max-height:500px){.room-screen #room .room-selector{top:8px;min-height:34px}.rooms-dialog{width:min(94vw,650px)}.home-room-grid{grid-template-columns:1fr 1fr}.home-room-card{grid-template-columns:1fr}.home-room-card>img{height:100px;min-height:100px}}

.shop-tabs button{display:flex;align-items:center;justify-content:center;gap:7px}.shop-section-icon{display:block;width:22px;height:22px;flex-shrink:0;pointer-events:none}

.room-screen #room .room-controls{position:absolute;top:10px;left:10px;right:10px;z-index:8;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.room-screen #room .room-controls>:is(#room-selector,#look,#my-decorations){position:static;inset:auto;min-width:0;min-height:42px;width:100%;margin:0;padding:8px 3px;font-size:13px;line-height:1.15;white-space:nowrap;background:#fff7e9ed;border:1px solid #d2b68f;border-radius:13px;color:#70523b;box-shadow:inset 0 1px white,0 2px 5px #67432725;backdrop-filter:blur(4px)}.room-screen #room .room-controls>:is(#room-selector,#look,#my-decorations):active{transform:translateY(1px);box-shadow:inset 0 1px 3px #67432720}.room-controls .room-selector span{margin-left:3px}.decoration-tools{bottom:12px}@media(max-width:360px){.room-screen #room .room-controls{left:7px;right:7px;gap:4px}.room-screen #room .room-controls>:is(#room-selector,#look,#my-decorations){font-size:12px}}@media(orientation:landscape) and (max-height:500px){.room-screen #room .room-controls{top:7px}.room-screen #room .room-controls>:is(#room-selector,#look,#my-decorations){min-height:36px}}

/* Room navigation lives above the scene; its two tools stay inside the scene. */
.room-screen #room .room-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.home-room-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;flex-shrink:0;background:#eee3d1;padding:4px;border-radius:15px}.home-room-tabs [role=tab]{min-width:0;min-height:48px;padding:6px 2px 4px;border-radius:11px;background:transparent;border:1px solid transparent;box-shadow:none;color:#826a52;font-size:12px;line-height:1.15;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.home-room-tabs [role=tab][aria-selected=true]{background:#fff9ee;border-color:#c1d3c5;box-shadow:0 2px 3px #6f553315;color:#315f56;font-weight:bold}.home-room-tabs small{font-size:10px;line-height:1;letter-spacing:0;color:inherit;font-weight:normal}.home-room-tabs [aria-selected=true] small{color:#4b8c75}.home-room-tabs .locked-room-tab{color:#8c7661}.home-room-tabs button:focus-visible{outline:2px solid #197c72;outline-offset:0}@media(max-width:340px){.home-room-tabs [role=tab]{font-size:11px}}@media(orientation:landscape) and (max-height:500px){.home-room-tabs [role=tab]{min-height:36px;flex-direction:row;gap:6px}}

.storage-flight{position:fixed;z-index:1000;pointer-events:none;display:flex;align-items:center;justify-content:center;transform-origin:center;filter:drop-shadow(0 4px 5px #69432933)}.storage-flight .item-art{width:100%;height:100%;display:block}.room-screen #room #my-decorations.storage-arrived{animation:storage-arrival 1.2s ease-out;background:#dcebd9;border-color:#659c7b;color:#315f56}@keyframes storage-arrival{0%,100%{transform:scale(1);box-shadow:0 2px 5px #67432725}35%{transform:scale(1.06);box-shadow:0 0 0 6px #a9d4b680,0 2px 5px #67432725}65%{transform:scale(1);box-shadow:0 0 0 10px #a9d4b600}}@media(prefers-reduced-motion:reduce){.room-screen #room #my-decorations.storage-arrived{animation:none;box-shadow:0 0 0 3px #9ac4a2}}
