#clothes-page{padding:0;width:min(calc(100% - 20px),470px);height:min(850px,94dvh);max-height:94dvh;overflow:hidden;display:none;grid-template-rows:auto auto minmax(0,1fr) auto;text-align:left;background:#fffaf0;border-radius:24px}
#clothes-page[open]{display:grid}
.clothes-header{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:17px 16px 12px 62px;gap:8px;background:#eff3e5}
#clothes-page .clothes-header .back{position:absolute;top:50%;left:10px;transform:translateY(-50%);float:none;margin:0;width:44px;height:44px}
.clothes-header>div{min-width:0}.clothes-header h2{white-space:nowrap}
.clothes-header h2{margin:1px 0 0;font-size:21px}.clothes-header small{font-size:11px;color:#728a73}.clothes-header>b{font-size:13px;color:#8e692e;white-space:nowrap}
.clothes-target-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:6px 15px 8px;font-size:14px;font-weight:700;border-bottom:1px solid #e3e6d5}
#clothes-target{min-height:44px;max-width:72%;border:1px solid #ced8bf;border-radius:13px;padding:6px 12px;background:#fffdf7;color:#316657;font-size:14px}
#clothes-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;padding:8px 12px 16px;scrollbar-width:thin}
.clothes-intro{font-size:12px!important;line-height:1.6!important;margin:3px 2px 10px!important;color:#7c846e!important}
.clothes-hero{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;background:#f4ead8;border-radius:19px;padding:8px 9px 8px 0;min-height:175px}
#clothes-preview{display:block;width:100%;max-height:215px;object-fit:contain;border-radius:16px}
#clothes-preview.unavailable{width:90%;padding:20px;box-sizing:border-box;opacity:.4;filter:grayscale(1)}
#clothes-kind{font-size:11px;color:#8c7558}.clothes-hero h3{font-size:17px;line-height:1.4;margin:6px 0}.clothes-hero p{font-size:12px!important;line-height:1.6!important;margin:0 0 8px!important;color:#777965!important}
#clothes-turn{font-size:12px;min-height:44px;background:#e6d8bc;padding:8px;border-radius:13px}
.clothes-tabs{display:flex;gap:7px;position:sticky;top:-8px;z-index:1;padding:12px 0 8px;background:#fffaf0}
.clothes-tabs button{flex:1;min-height:44px;border-radius:16px;background:#e8eee1;color:#5b7967;font-size:14px;font-weight:700}.clothes-tabs button.active{background:#347f65;color:#fff8dd}
#clothes-count{display:block;font-size:12px;color:#798473;margin:0 2px 8px}
#clothes-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.clothes-card{padding:7px 7px 11px;min-width:0;border:2px solid transparent;border-radius:18px;background:#f0ebdf;display:flex;flex-direction:column;align-items:center;color:#3f6154;gap:6px;min-height:165px}
.clothes-card.selected{border-color:#388369;background:#e4eddb}.clothes-card img{width:100%;aspect-ratio:256/280;object-fit:contain;border-radius:12px}.clothes-card b{font-size:14px;line-height:1.4}.clothes-card small{font-size:12px;color:#9b753c}.clothes-card.collectible{background:#eee9e0;color:#81776b}
.clothes-locked-art{height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:64px;color:#a99a7c}.clothes-locked-art i{font-size:13px;font-style:normal;letter-spacing:.2em}
.clothes-buy-bar{padding:10px 13px calc(9px + env(safe-area-inset-bottom,0px));border-top:1px solid #d8dfce;background:#f4f5e9;box-shadow:0 -4px 16px #3a654010;display:grid;gap:6px}
.clothes-buy-bar>b{font-size:17px;color:#91682f}.clothes-buy-bar>small{font-size:12px;line-height:1.5;color:#76806b}
#clothes-action{width:100%;min-height:48px;padding:10px 8px;font-size:14px;border-radius:18px}
#clothes-reset{border:0;background:transparent;color:#5c7a67;min-height:44px;font-size:12px;padding:3px}
#clothes-reset:disabled{opacity:.4}#clothes-buy-confirm{padding-top:35px}#clothes-confirm-cost{display:block;font-size:27px;color:#9b753a;margin:12px 0}#clothes-buy-confirm .secondary{margin-top:8px}
@media(max-height:620px){.clothes-header{padding-top:10px;padding-bottom:8px}.clothes-header h2{font-size:18px}.clothes-target-row{padding-top:2px;padding-bottom:2px}.clothes-buy-bar{gap:3px;padding-top:7px}.clothes-buy-bar>b{font-size:15px}#clothes-reset{min-height:36px}.clothes-hero{min-height:145px}.clothes-hero h3{font-size:15px}}
@media(max-width:360px){.clothes-header{gap:4px}.clothes-header>div,.clothes-header>b{grid-column:1/-1}.clothes-header small{display:none}.clothes-header h2{font-size:18px}.clothes-header>b{font-size:12px}}
