.fwa {
    --rc: var(--ui-teal, #4ecdc4);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.fwa-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--sect-text-dim, #8b98a5);
}

.fwa-cosmetic {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    background: radial-gradient(ellipse at 0% 50%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), var(--sect-surface-2, rgba(0, 0, 0, 0.25));
    border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent);
    border-radius: var(--r-md, 8px);
}
.fwa-cosmetic__art { flex: 0 0 auto; width: 112px; display: grid; place-items: center; }
.fwa-cosmetic__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fwa-desc { margin: 0; font-size: 0.9em; line-height: 1.45; color: var(--sect-text, #e6edf3); }

.fwa-pills, .fwa-chips, .fwa-applied { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fwa-pill {
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--sect-text, #e6edf3);
    background: var(--sect-surface-3, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--sect-border, #333);
    border-radius: 999px;
}
.fwa-pill--rarity { color: var(--rc); border-color: color-mix(in srgb, var(--rc) 60%, transparent); }
.fwa-chip {
    padding: 2px 8px;
    font-size: 11.5px;
    text-transform: capitalize;
    color: var(--sect-text-dim, #8b98a5);
    border: 1px solid var(--sect-border, #333);
    border-radius: var(--r-sm, 6px);
}
.fwa-chip--on { color: var(--ui-teal, #4ecdc4); border-color: rgba(78, 205, 196, 0.45); text-transform: none; }

.fwa-stage__preview {
    display: grid;
    place-items: center;
    min-height: 220px;
    background: radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.14), transparent 62%), rgba(0, 0, 0, 0.28);
    border: 1px solid var(--sect-border, #333);
    border-radius: var(--r-md, 8px);
}
.fwa-stage__preview canvas { width: 100%; max-width: 420px !important; }

.fwa-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.fwa-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 10px 12px;
    font: inherit;
    color: var(--sect-text, #e6edf3);
    text-align: center;
    background: var(--sect-surface-2, rgba(0, 0, 0, 0.25));
    border: 1px dashed var(--sect-border, #333);
    border-radius: var(--r-md, 8px);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.fwa-slot:hover:not(:disabled) { border-color: var(--rc); transform: translateY(-1px); background: color-mix(in srgb, var(--rc) 8%, var(--sect-surface-2, rgba(0, 0, 0, 0.25))); }
.fwa-slot:focus-visible { outline: 2px solid var(--ui-teal, #4ecdc4); outline-offset: 2px; }
.fwa-slot:disabled { cursor: default; opacity: 0.6; }
.fwa-slot.is-filled { border-style: solid; border-color: color-mix(in srgb, var(--rc) 55%, var(--sect-border, #333)); }
.fwa-slot.is-changed { box-shadow: 0 0 0 1px var(--ui-gold, #ffd700), 0 0 14px rgba(255, 215, 0, 0.18); }
.fwa-slot__label { font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--sect-text-dim, #8b98a5); }
.fwa-slot__art { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; }
.fwa-slot__art > *, .fwa-slot__art svg { max-width: 100%; max-height: 100%; }
.fwa-slot__glow { display: grid; place-items: center; width: 100%; height: 100%; filter: drop-shadow(0 0 6px var(--fx, var(--ui-teal, #4ecdc4))); }
.fwa-slot__empty {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: var(--sect-text-mute, #5c6773);
    border: 1px dashed var(--sect-border, #333);
    border-radius: 50%;
}
.fwa-slot__value { max-width: 100%; font-weight: 700; overflow-wrap: anywhere; color: var(--sect-text-mute, #5c6773); }
.fwa-slot.is-filled .fwa-slot__value { color: var(--rc); }
.fwa-slot--weapon.is-filled .fwa-slot__value { color: var(--sect-text, #e6edf3); }
.fwa-slot__meta { font-size: 11.5px; color: var(--sect-text-dim, #8b98a5); }
.fwa-slot.is-filled:not(.fwa-slot--weapon) .fwa-slot__meta { color: var(--ui-gold, #ffd700); font-weight: 700; }

.fwa-actions { display: flex; justify-content: center; gap: 8px; }
.fwa-equip { min-width: 180px; }

.fwa-banner {
    margin: 0;
    padding: 8px 12px;
    font-size: 0.85em;
    color: var(--ui-gold, #ffd700);
    background: var(--ui-gold-dim, rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: var(--r-md, 8px);
}

.fwa-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    text-align: center;
    border: 1px dashed var(--sect-border, #333);
    border-radius: var(--r-md, 8px);
}
.fwa-empty strong { color: var(--sect-text, #e6edf3); }

.fwa-note { margin: 0; font-size: 11.5px; text-align: center; color: var(--sect-text-mute, #5c6773); }

@media (max-width: 560px) {
    .fwa-cosmetic { flex-direction: column; text-align: center; }
    .fwa-pills, .fwa-chips, .fwa-applied { justify-content: center; }
    .fwa-cosmetic__art { width: 88px; }
    .fwa-stage__preview { min-height: 0; padding: 8px 0; }
    .fwa-stage__preview canvas { max-width: 100% !important; }
    .fwa-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fwa-slot__art { width: 56px; height: 56px; }
}
