/* ===== My Decoration (我的装扮) ===== */
.dec-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #14142a; z-index: 9997; display: flex; flex-direction: column;
    overflow: hidden;
}
.dec-header {
    display: flex; align-items: center; padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; background: #1e1e3a;
}
.dec-back {
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: #fff; padding: 0 8px 0 0; line-height: 1;
}
.dec-title {
    flex: 1; text-align: center; font-size: 17px; font-weight: 600; color: #fff;
    margin-right: 32px;
}
.dec-tabs {
    display: flex; align-items: center; gap: 18px; padding: 12px 16px 0;
    background: #1e1e3a; flex-shrink: 0; overflow-x: auto; white-space: nowrap;
}
.dec-tab {
    background: none; border: none; color: #9a9ab0; font-size: 15px; font-weight: 500;
    padding: 4px 0 10px; cursor: pointer; position: relative; flex-shrink: 0;
}
.dec-tab.active { color: #ffd15c; font-weight: 700; }
.dec-tab.active::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 2px; background: #ffd15c;
}
.dec-filter {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    background: #1e1e3a; border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
    overflow-x: auto; white-space: nowrap;
}
.dec-filter-chip {
    padding: 5px 16px; border-radius: 16px; font-size: 13px; font-weight: 500;
    border: none; background: #2b2b4d; color: #b8b8cc; cursor: pointer; white-space: nowrap;
    flex-shrink: 0;
}
.dec-filter-chip.active { background: #ffd15c; color: #2a2a1a; font-weight: 700; }
.dec-body {
    flex: 1; overflow-y: auto; padding: 14px 16px;
}
.dec-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
@media (min-width: 520px) {
    .dec-grid { grid-template-columns: repeat(auto-fill, 180px); }
}
.dec-card {
    position: relative; background: #20203c; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
}
.dec-card.equipped { border-color: #ffd15c; }
.dec-card-badge {
    position: absolute; top: 0; left: 0; z-index: 2;
    padding: 3px 10px; font-size: 11px; color: #fff; font-weight: 600;
    background: rgba(0,0,0,0.55); border-bottom-right-radius: 10px;
}
.dec-card.equipped .dec-card-badge { background: linear-gradient(135deg, #9b59b6, #7b68ee); }
.dec-card-pic {
    position: relative; width: 100%; aspect-ratio: 1 / 1; background: #17172e;
    display: flex; align-items: center; justify-content: center;
}
.dec-card-pic img { width: 100%; height: 100%; object-fit: cover; }
.dec-card.locked .dec-card-pic img { filter: grayscale(0.6) brightness(0.7); }
.dec-card-lock {
    position: absolute; top: 8px; right: 8px; font-size: 16px; color: #fff; opacity: 0.85;
}
.dec-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; gap: 8px;
}
.dec-card-info { min-width: 0; }
.dec-card-name {
    font-size: 14px; font-weight: 600; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dec-card-expire { font-size: 11px; color: #9a9ab0; margin-top: 3px; }
.dec-card-radio {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35); background: transparent; color: #2a2a1a;
    font-size: 13px; line-height: 1; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}
.dec-card-radio.on { background: #ffd15c; border-color: #ffd15c; }
/* Chat bubbles are wide strips: cards size to the preview, several per row */
.dec-grid.wide { display: flex; flex-wrap: wrap; align-items: flex-start; }
.dec-grid.wide .dec-card { width: auto; max-width: 100%; min-width: 170px; }
.dec-grid.wide .dec-card-pic { aspect-ratio: auto; padding: 10px 8px 6px; }
.dec-grid.wide .dec-card-pic img { width: auto; height: 86px; max-width: 100%; object-fit: contain; }
/* entry effect strips vary a lot in aspect ratio; give every card the same
   footprint and letterbox the preview inside it so they no longer render at
   wildly different widths. */
.dec-grid.effect .dec-card { flex: 0 0 auto; width: 300px; min-width: 0; max-width: 100%; }
.dec-grid.effect .dec-card-pic { aspect-ratio: auto; height: 72px; padding: 8px 12px; }
.dec-grid.effect .dec-card-pic img { width: 100%; height: 100%; object-fit: contain; }
/* Medals are transparent square artwork of varying scale; letterbox each into
   an equal square box so every icon reads at a consistent size (no cropping). */
.dec-grid.medal .dec-card-pic { padding: 12px; }
.dec-grid.medal .dec-card-pic img { object-fit: contain; }
.dec-empty {
    text-align: center; color: #8a8aa0; font-size: 14px; padding: 60px 0;
}

/* 我的装扮 entry banner on the 我的 page */
.mine-action-btn.dec-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 10px;
    background: linear-gradient(135deg, #3a2270 0%, #5b2a86 55%, #7a2f8f 100%);
    border: 1px solid rgba(214,140,255,.55);
    border-radius: 14px;
    box-shadow: 0 0 14px rgba(170,80,255,.25);
}
.dec-banner-icon { font-size: 30px; line-height: 1; flex: none; }
.dec-banner-body { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex: 1; min-width: 0; }
.dec-banner-title { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: #fff; }
.dec-banner-new {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #ff2d78;
    border-radius: 5px;
    padding: 1px 5px;
    letter-spacing: .5px;
}
.dec-banner-sub {
    font-size: 12px;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.dec-banner-go {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    padding: 7px 14px;
    border-radius: 16px;
    background: linear-gradient(90deg, #b552ff, #ff5fc0);
    box-shadow: 0 2px 10px rgba(200,80,255,.4);
}
@media (max-width: 380px) {
    .dec-banner-sub { display: none; }
}
