/* css/inventory.css */
#inventoryScreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #09090b;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.inv-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #09090b;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.inv-header h1 {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inv-tabs {
    display: flex;
    padding: 16px 20px;
    gap: 10px;
}

.inv-tab {
    flex: 1;
    background: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.inv-tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.inv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 20px 100px 20px;
}

.inv-card {
    background: linear-gradient(180deg, #18181b 0%, #111113 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #27272a;
    position: relative;
}

.inv-card-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.inv-card-name {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
}

.inv-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.inv-btn.equip {
    background: #27272a;
    color: #fff;
}

.inv-btn.equipped {
    background: rgba(70, 211, 105, 0.15);
    color: #46d369;
    border: 1px solid #46d369;
}

.inv-btn.unequip {
    background: rgba(229, 9, 20, 0.1);
    color: #E50914;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.inv-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}
.inv-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}