/* Shared costume picker for both games. */
.costumes-panel {
    width: min(520px, calc(100vw - 32px));
    margin: 10px auto 0;
    padding: 14px;
    border: 1px solid rgba(173, 130, 255, .35);
    border-radius: 16px;
    background: rgba(10, 8, 30, .94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.costumes-panel.hidden { display: none !important; }

.costumes-panel__heading,
.costumes-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.costumes-panel__heading h2,
.costumes-panel__header h2 { margin: 0; font-size: 1rem; }
.costumes-panel__heading button,
.costumes-panel__close { min-width: auto; padding: 5px 9px; }
.costumes-panel__status { min-height: 1.2em; margin: 8px 0 0; color: #ffd45a; font-size: .78rem; }
.costumes-list { display: grid; gap: 8px; }

.costume-option {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .055);
    text-align: left;
    cursor: pointer;
}

.costume-option:hover:not(:disabled),
.costume-option.is-equipped { border-color: rgba(90, 231, 207, .7); background: rgba(90, 231, 207, .12); }
.costume-option:disabled { cursor: not-allowed; opacity: .5; }
.costume-option__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); font-size: 1.2rem; }
.costume-option__copy { min-width: 0; display: grid; gap: 3px; }
.costume-option__copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.costume-option__copy small { color: rgba(255,255,255,.58); font-size: .68rem; }
.costume-option__state { color: #8cf0d1; font-weight: 800; }

@media (max-width: 560px) {
    .costumes-panel { width: calc(100vw - 24px); padding: 10px; }
}
