#mall-dialog{width:min(1140px,96vw);max-width:1140px;padding:0;border:2px solid #1d3645;background:#fbf8ef;color:#1d3645;border-radius:24px;max-height:94dvh;overflow:auto;box-shadow:0 8px 0 #1d3645,0 30px 100px #132f4c55}
#mall-dialog::backdrop,#emote-dialog::backdrop{background:#142d49a8;backdrop-filter:blur(7px)}
#mall-dialog button{font-family:inherit}
#mall-dialog button:focus-visible{outline:3px solid #ffc83e;outline-offset:3px}
.mall-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 26px;background:#fffdf7;color:#1d3645;border-bottom:2px solid #1d3645}
.mall-head h2{font-size:30px;margin:3px 0;letter-spacing:-1px}
.mall-head small{font-size:11px;letter-spacing:1.5px;font-weight:800;color:#087e7c}
.mall-head button{background:#fff;color:#1d3645;border:2px solid #1d3645;border-radius:12px;padding:10px 14px;font-weight:800;box-shadow:0 3px 0 #1d3645;cursor:pointer}
.mall-wallet{display:flex;flex-wrap:wrap;gap:8px;font-size:14px;font-weight:800}
.mall-wallet span{padding:9px 12px;background:#e8f3ee;border:1px solid #b8d9ca;border-radius:10px;white-space:nowrap}
.mall-wallet span:last-child{background:#fff0b9;border-color:#efd68d;color:#5f4714}
.mall-layout{display:grid;grid-template-columns:35% 1fr}
.fitting-panel{background:linear-gradient(145deg,#e2f2eb,#f5f4e8);border-right:1px solid #cad9ce;padding:22px;display:flex;flex-direction:column;align-items:stretch;position:sticky;top:0;align-self:start}
.fitting-panel .eyebrow{font-size:11px;letter-spacing:1.2px;font-weight:800;color:#126b63;text-align:center}
#fitting-room{height:310px;min-width:0;display:grid;place-items:center;touch-action:none;cursor:grab}
#fitting-room canvas{display:block;max-width:100%}
.preview-controls{display:flex;justify-content:center;gap:7px}
.preview-controls button{padding:7px 10px;font-size:12px;background:#fffdf7;border:1px solid #aac7ba;border-radius:8px;color:#31564f;cursor:pointer}
.preview-controls button[aria-pressed=true]{background:#d1e9dd;border-color:#528c77}
.fitting-panel h3{font-size:26px;letter-spacing:-.6px;line-height:1.12;margin:20px 0 9px}
.fitting-panel p{font-size:14px;line-height:1.55;margin:0 0 12px;color:#47645e}
.style-price{display:flex;flex-wrap:wrap;gap:8px;font-weight:800;font-size:14px;margin:4px 0 14px}
.style-price span{background:#fffdf7;border:1px solid #c8d9cd;border-radius:8px;padding:7px 9px}
#style-action{border:2px solid #1d3645;background:#ffc83e;color:#1d3645;font-size:16px;padding:13px;border-radius:12px;font-weight:800;box-shadow:0 3px 0 #1d3645;cursor:pointer}
#style-action:disabled{background:#dce4db;color:#597067;box-shadow:none;border-color:#b4c4b7;cursor:default}
#style-shortfall{font-size:12px;line-height:1.5;margin-top:12px;color:#47645e}
.mall-catalogue{padding:22px 24px;min-width:0}
.mall-note{font-size:14px;line-height:1.55;margin:0 0 14px;color:#526473}
.mall-tabs{display:flex;flex-wrap:wrap;gap:7px}
.mall-tabs button{font-size:13px;font-weight:700;padding:9px 11px;border:1px solid #c5d4cb;background:#fff;color:#3b5362;border-radius:10px;cursor:pointer}
.mall-tabs button[aria-pressed=true]{background:#1b7167;color:#fffdf7;border-color:#1b7167;box-shadow:0 2px 0 #174b46}
.mall-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 12px}
.mall-tools span{font-size:12px;color:#566f66}
.mall-tools button{border:1px solid #a4beb0;border-radius:8px;color:#235d4e;font-size:13px;font-weight:700;background:#e8f0e6;padding:7px 10px;cursor:pointer}
.mall-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.style-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;min-height:206px;padding:13px;border:2px solid #d0dbd3;background:#fffdf8;border-radius:14px;color:#1d3645;cursor:pointer;box-shadow:0 3px 0 #d0dbd3}
.style-card:hover{border-color:#6f9d88;transform:translateY(-1px)}
.style-card.selected{border-color:#1b7167;background:#edf7ec;box-shadow:0 3px 0 #1b7167}
.style-card-top{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:13px}
.style-icon{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;background:var(--item);border:1px solid #1d36452b;border-radius:9px;font-size:19px;color:#1d3645}
.style-card .style-state{font-size:10px;font-weight:800;padding:5px 6px;border-radius:6px;white-space:nowrap;background:#e7ede7;color:#426253}
.style-card .state-equipped{background:#1b7167;color:#fffdf7}
.style-card .state-owned{background:#e4f1dc;color:#35663f}
.style-card .state-locked{background:#eeebe5;color:#696056}
.style-card .state-shop{background:#fff0b9;color:#765910}
.style-category{text-transform:uppercase;letter-spacing:.8px;font-size:10px;color:#617369}
.style-card strong{font-size:16px;line-height:1.25;margin:5px 0 7px;letter-spacing:-.2px}
.style-card-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.45;color:#617369;margin-bottom:14px}
.style-card .style-card-price{display:flex;flex-wrap:wrap;gap:5px 9px;font-size:11px;font-weight:700;margin-top:auto;padding-top:10px;border-top:1px solid #dce5da;color:#3d6152;line-height:1.4}
.style-card-price span{white-space:nowrap}
.wardrobe-empty{grid-column:1/-1;min-height:160px;padding:20px;border:1px dashed #aac0b0;border-radius:14px;background:#f0f4e8}
.wardrobe-empty p{font-size:15px;line-height:1.6}
.mall-message{font-size:14px;min-height:22px;line-height:1.6;color:#236254;margin:14px 0 0}
.mall-economy{font-size:12px;color:#607569;line-height:1.7;margin-top:20px;border-top:1px solid #d5dfd2;padding-top:15px}
.mall-economy .easy{color:#9d7208}.mall-economy .medium{color:#b76610}.mall-economy .hard{color:#ba4140}
.identity-controls{border-top:1px solid #b4caba;padding-top:15px;margin-top:16px}
.identity-controls p{font-size:12px;margin:12px 0 7px}
#wardrobe-character{background:#fffdf7;border:1px solid #a6c0ae;border-radius:9px;padding:9px 12px;color:#31564f;font-size:13px;cursor:pointer}
.colour-row{display:flex;gap:9px;flex-wrap:wrap}
.colour-dot{background:var(--swatch);width:28px;height:28px;border:2px solid #ffffffd9;border-radius:50%;cursor:pointer;box-shadow:0 0 0 1px #749483}
.colour-dot[aria-pressed=true]{outline:2px solid #1b7167;outline-offset:3px}
.character-controls{position:absolute;bottom:24px;left:22px;display:flex;gap:7px;z-index:5}.character-controls button{padding:10px 12px;font-size:13px;font-weight:700;border:1px solid #dce7da;background:#fff9eaeF;color:#305667;border-radius:12px;box-shadow:0 4px 15px #34566016}.emote-playing{position:absolute;bottom:74px;left:22px;font-size:12px;background:#304b60;color:#ffefbe;padding:8px 11px;border-radius:9px;pointer-events:none}
#emote-dialog{border:0;border-radius:24px;background:#253f57;color:#fff6d8;padding:24px;width:min(640px,94vw);max-width:640px;overflow:auto;max-height:94dvh}#emote-dialog h2{font-size:27px;margin:0}.emote-heading{display:flex;align-items:center;justify-content:space-between}.emote-heading button{border:0;background:#ffffff16;color:#fff2d5;padding:9px;border-radius:8px}#emote-dialog>p{font-size:14px;color:#bcd6e0;margin:6px 0}.emote-wheel{position:relative;height:460px;max-width:580px;margin:auto}.emote-wheel>button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(var(--angle)) translateY(-155px) rotate(calc(-1 * var(--angle)));width:128px;min-height:99px;border:1px solid #819ca652;border-radius:15px;background:#395970;color:#fff5d7;padding:11px 6px;display:flex;flex-direction:column;gap:4px;align-items:center;cursor:pointer}.emote-wheel>button b{font-size:25px;color:#f2cf76}.emote-wheel>button span{font-size:13px;font-weight:700}.emote-wheel>button small{font-size:10px;color:#c6dbe1}.emote-wheel>button:disabled{background:#293f51;color:#8aa2af;cursor:default}.emote-wheel>button:disabled b{color:#708791}.emote-wheel>button:not(:disabled):hover{background:#577c8a;border-color:#ebc679}.emote-stop{display:block;margin:-270px auto 210px;position:relative;background:#efcb7d;border:0;border-radius:50%;width:90px;height:90px;color:#344d5a;font-size:15px;font-weight:800}
@media(max-width:900px){.mall-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mall-head{padding:18px}.mall-head h2{font-size:25px}.mall-wallet{gap:5px;font-size:13px}.mall-wallet span{padding:7px}.mall-catalogue{padding:16px}.fitting-panel{padding:16px}#fitting-room{height:270px}}
@media(max-width:600px){.mall-head{flex-wrap:wrap;gap:10px}.mall-head>div:first-child{flex:1}.mall-wallet{order:3;flex-basis:100%}.mall-layout{display:block}.fitting-panel{position:relative;display:grid;grid-template-columns:40% 1fr;gap:0 12px;border-right:0;border-bottom:1px solid #cad9ce}.fitting-panel>.eyebrow{grid-column:1/-1;text-align:left}#fitting-room{grid-column:1;grid-row:2/7;height:230px}.preview-controls{grid-column:1;grid-row:7;flex-wrap:wrap}.fitting-panel h3{margin:12px 0 6px;font-size:22px}.fitting-panel p{font-size:13px}.identity-controls{grid-column:1/-1}.style-price{font-size:12px;gap:6px}.style-price span{padding:5px 7px}#style-action{font-size:13px;padding:10px}#style-shortfall{grid-column:2}.mall-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.style-card{min-height:204px;padding:11px}.style-card strong{font-size:15px}.style-card .style-state{font-size:9px;padding:5px}.style-icon{width:28px;height:28px;font-size:17px}.character-controls{bottom:20px;left:130px;max-width:calc(100% - 150px);flex-wrap:wrap}.character-controls button{padding:9px;font-size:12px}.emote-playing{left:130px;bottom:110px}.emote-wheel{height:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}.emote-wheel>button{position:static;transform:none;width:auto;min-height:86px}.emote-stop{border-radius:10px;width:100%;height:42px;margin:12px 0 0}}
@media(prefers-reduced-motion:reduce){.style-card:hover{transform:none}}

.shop-phrase{background:#e2edef;border:1px solid #c0d4d9;color:#305b70;padding:9px 12px;font-size:14px;border-radius:9px;cursor:pointer;margin-bottom:15px}

/* Shared collection pictures are rendered once from the existing town models. */
.inventory-art{display:grid;place-items:center;width:96px;height:96px;flex-shrink:0;border-radius:12px;overflow:hidden;background:linear-gradient(145deg,#f6f8ee,#e3ede5);border:1px solid #d1dfd4}
.inventory-thumbnail{display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
.mall-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mall-grid .style-card{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px;min-height:142px;padding:12px}
.style-card-copy{display:flex;flex-direction:column;align-self:stretch;min-width:0}
.style-card .style-card-top{flex-wrap:wrap;gap:5px;margin:0 0 4px}
.style-card .style-category{font-size:9px;letter-spacing:.6px}
.style-card strong{display:block;margin:4px 0 6px;font-size:16px;overflow-wrap:anywhere}
.style-card .style-card-description{display:block;overflow:visible;margin-bottom:8px;line-height:1.4}
.style-card .style-card-price{padding-top:6px}
.style-card:focus-visible{outline:3px solid #dfa943;outline-offset:3px}
@media(max-width:1050px) and (min-width:601px){.mall-grid{grid-template-columns:1fr}}
@media(max-width:600px){.mall-layout{display:flex;flex-direction:column}.mall-catalogue{order:-1}.mall-grid{grid-template-columns:1fr;gap:10px}.mall-grid .style-card{grid-template-columns:88px minmax(0,1fr);min-height:126px;padding:10px;gap:12px}.style-card .inventory-art{width:88px;height:88px}.style-card strong{font-size:16px}.style-card .style-state{font-size:10px}.fitting-panel{width:100%;box-sizing:border-box}}

/* Collection rarity is separate from ownership and never changes item prices. */
.style-rarity{display:inline-block;font-size:10px;font-weight:800;padding:4px 6px;border-radius:6px;white-space:nowrap;line-height:1.3}
.style-rarity.rarity-common{background:#e5eee8;color:#3e6153}
.style-rarity.rarity-rare{background:#dcedfb;color:#245483}
.style-rarity.rarity-epic{background:#eee1fc;color:#6b348b}
.style-rarity.rarity-legendary{background:#fff0bd;color:#785109}
.style-price .style-rarity{font-size:12px;padding:7px 9px}
.emote-wheel.paged{display:block;height:auto;margin:16px auto 0}
.emote-groups{display:flex;gap:8px;margin-bottom:14px}
.emote-groups button,.emote-pagination button{font-family:inherit;border:1px solid #91adc1;border-radius:10px;padding:10px 12px;color:#fff6d8;background:#395970;font-weight:800;cursor:pointer}
.emote-groups button{flex:1}
.emote-groups button[aria-pressed=true]{background:#ffda78;color:#253f57;border-color:#ffda78}
.emote-groups small{display:inline-block;margin-left:4px;font-size:11px}
.emote-page-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.emote-page-grid>button{position:static;transform:none;width:100%;min-height:104px;box-sizing:border-box;border:1px solid #819ca652;border-radius:13px;background:#395970;color:#fff5d7;padding:12px 7px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;cursor:pointer;font-family:inherit}
.emote-page-grid>button b{font-size:28px;color:#f2cf76;line-height:1.2}
.emote-page-grid>button span{font-size:13px;line-height:1.25;font-weight:800;overflow-wrap:anywhere}
.emote-page-grid>button small{font-size:10px;color:#c6dbe1;line-height:1.3}
.emote-page-grid>button:disabled{background:#293f51;color:#97adbb;cursor:default}
.emote-page-grid>button:disabled b{color:#91a7b8}
.emote-page-grid>button:not(:disabled):hover{background:#577c8a;border-color:#ebc679}
.emote-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}
.emote-pagination>span{font-size:13px;white-space:nowrap;color:#d5e4ee}
.emote-pagination button:disabled{opacity:.45;cursor:default}
#emote-dialog button:focus-visible{outline:3px solid #ffda78;outline-offset:3px}
#emote-dialog .emote-stop{position:static;border-radius:10px;width:100%;height:42px;margin:14px 0 0}
@media(max-width:600px){.emote-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.emote-page-grid>button{min-height:96px}.emote-groups button,.emote-pagination button{font-size:12px;padding:9px 10px}}
